The most common name of the per-directory settings file for the Apache server. WordPress stores the mod_rewrite configuration for "Pretty Permalinks" here. [url-rewriting] should be used for the WordPress rewrite system in general, [mod-rewrite] when you talk specifically about the Apache module.

learn more… | top users | synonyms (1)

0
votes
1answer
4k views

custom htaccess rewrite rule for page

i have a page in wordpress called "video". its page id is 6, and its slug is "video" in my theme ive set it up to show content based on GET variables here is the URL rewrite im trying to set up: ...
8
votes
7answers
16k views

Cannot access non-wordpress subdirectories as wordpress overrides them with a 404 error

I refer to this question previously asked and not suitably answered: Wordpress overriding actual subdirectories and also Non "Wordpress" pages/code getting 404 error. I have the same ...
-1
votes
2answers
3k views

How to: 301 Redirect /category/ to /customname/

I've changed our "category base" in WP settings from the default "category" to "customname". Now there are 404 errors to links containing the old category slug eg. mysite.com/category/names What do ...
5
votes
3answers
4k views

Setting up WordPress with Custom Permalinks and no .htaccess File?

I have a client that strongly prefers to disable .htaccess files because they like to set the Apache configurations themselves. However, they still want SEO-friendly URLs. Is there a way to have ...
4
votes
1answer
1k views

Passing variables through permalink structure

I have a WordPress page which is accessible via /accommodation/. What I want to be able to do is pass in a parameter using the URL - ie going to /accommodation/value1/ would load the same page as ...
2
votes
2answers
2k views

WordPress upgrade now receiving Error 101 (net::ERR_CONNECTION_RESET): Unknown error

We have just updated to WordPress 3.1.3 by following the WP manual install tutorial. Note: This is a Network-enabled (multi-site) install. After uploading the new files, we now get the following error ...
4
votes
1answer
635 views

Redirect entire website to a single page

I need to redirect a whole WordPress site to a single WordPress page. A sort of maintenance mode, but the redirect has to go to a published WordPress page. Unfortunately, the maintenance page I need ...
1
vote
2answers
454 views

Protect Uploads in Multisite

I am using WordPress multisite (3.3.1) and am trying to protect uploads from certain blogs from being hotlinked and directly accessed. This is loosely related to How to Protect Uploads, if User is not ...
0
votes
1answer
289 views

How to redirect RSS feeds to Feedburner and keep pretty permalinks?

There are many tutorials out there, but all of them give you the same code snippet. I put it into my htaccess file, but the feeds are not being redirected. I don't want to use a plugin. I'm sure the ...
2
votes
5answers
3k views

WordPress permalinks Yahoo hosting(no .htaccess allowed)

I have moved a Wordpress install to a client from sub folder to the root folder. Right now, everything works fine, except for the friendly URLs. I currently have to set the Permalink feature in ...
1
vote
1answer
281 views

WordPress keeps writing rewrite rules to .htaccess

WordPress keeps writing rewrite rules into .htaccess again and again till it causes an error and causes server to return 500 Internal server error... i.e. My .htaccess is a series of # BEGIN ...
0
votes
1answer
67 views

How to redirect WP post with a specific word in the URL

I've changed the URL structure of my WordPress post (not page) from: example.com/archive/post-id to: example.com/post-name I'd like to redirect the old structure /post/ to the new one via ...
0
votes
3answers
795 views

Force redirect single.php to index

I want to make a force redirect for single.php to index so that it is never reachable by direct access (the site is built in a way that you retrieve all the content on the index page, still need to ...
0
votes
1answer
248 views

Auto 301 to full post permalink? (using /posts/%post_id%/%postname%)

I update my permalink structure to /post/%post_id%/%postname%, but if someone uses a URL like /post/1234 instead of the full URL of /post/1234/bingo-rulz, WordPress shows the post without giving a 301 ...
0
votes
1answer
245 views

WordPress total posts per page changed and now 404 Http error comes out [closed]

I have migrate my web site from Joomla to WordPress. All are fine, I have create my Rewrites in htaccess to stop 404 from old URLs but I have problem with pagination. In Joomla web site, I had 6 ...
0
votes
2answers
2k views

How to? Redirect /category/sci-fi/ to /category/scifi/?

I changed the wordpress category slug from "sci-fi" to "scifi" a few months back by accident. How can I redirect /category/sci-fi/ to /category/scifi/ so that /category/sci-fi/page/2/, ...
44
votes
7answers
7k views

Best collection of code for your .htaccess file [closed]

We have the Best Collection of Code for your functions.php file thread, so I thought that it might be useful to create a thread for our .htaccess files. AND PLEASE REMEMBER TO ADD ANY OF YOUR OWN ...
8
votes
4answers
1k views

Security and .htaccess

About a month ago I started a WordPress blog on a hosted server related to a hobby. So, I am new to this at present. Since I'm concerned about security, one thing I did was to install the plugin WP ...
5
votes
5answers
3k views

Use a different domain for SSL

long time lurker - first time poster. A client of mine has a website developed in CakePHP, and a wordpress blog installed in the /blog/ directory. Let's say the url of the main domain is ...
4
votes
2answers
163 views

Allow admin login at /admin

I am interested in: how can we change the default login url /wp-admin to /login how can we add another url for login so that both /wp-admin and /login would work I tried to use a custom filter and ...
7
votes
1answer
3k views

Moving a WP Multisite to a subdirectory

Firstly, I've read a number of posts on this process. However, for various reasons, the process remains difficult to implement or troubleshoot for lack of even abstracted examples, or maybe too ...
1
vote
1answer
686 views

How Do I Programmatically Force Custom Permalinks with My Theme?

I'm making a custom theme. It's a highly specialized theme to make WordPress into like an application rather than a CMS system or blog. For instance, a Dental Office Scheduling System (with CMS and ...
1
vote
3answers
806 views

How to add .htaccess code through a function?

I need to add the following .htaccess code through a function <IfModule mod_deflate.c> # Insert filters AddOutputFilterByType DEFLATE text/plain AddOutputFilterByType DEFLATE text/html ...
1
vote
1answer
501 views

htaccess or redirect to cloak portion of a link?

I have an ad rotate plugin installed to display a few ads on my site but the plugin is coded so that it uses the full directory in the ad count link. I would like to know if there's something easy to ...
2
votes
1answer
1k views

Hijacking the URL for filtering

Right, here's the deal. I've got a loop of which displays news posts, these posts can belong to special categories (not normal categories) and I want to be able to filter by them. If I wasn't too ...
1
vote
1answer
535 views

Add .html extension to custom post type taxonomies

I want to have the .html extension in the custom post type taxonomy urls. My custom post type taxonomy it is called "product_cat". I will need something like: ...
1
vote
1answer
108 views

unexpected problem in url rewrite

As per the answer provided in How to create custom URL routes? I have created the rewrite rule using the same function provided. add_action( 'init', 'wpse26388_rewrites_init' ); function ...
1
vote
2answers
2k views

Domain redirect in Wordpress multisite

I have two domains www.domain1.com and www.domain2.com, both pointing to the same host. What I want to do is redirect www.domain2.com to www.domain1.com/domain2. I got this code for a .htaccess from ...
1
vote
1answer
906 views

Wordpress overrides the GET variables, (page_id) set in HTACCESS

I have a wordpress site that is extremely large and pushing Wordpress to its limits. It uses a number of pages/categories and a lot of .htaccess rules to organise the various sections of the site, ...
0
votes
1answer
795 views

How to avoid wordpress permalink rules to inherit in a sub-folder

I have WordPress installation on the root of a website, I need to install another application on a sub-folder but that application got its own set of rules for URLs on its .htaccess file, my problem ...
3
votes
3answers
922 views

Options for restricting access to wp-admin

So i've installed a plug-in which allows me to enable two-factor authentication for my users. The problem is that to enable the plug-in i have to log in as that user and enable it via their profile ...
3
votes
4answers
838 views

Plugin to edit htaccess file

Is there anyway I can edit my htaccess file without using ftp?
2
votes
1answer
624 views

Htaccess redirect from '/%postname%.html' to '/%postname%'

I have a Drupal 5.x based travel review site which I'm moving over to Wordpress 3.x (same domain name). The Drupal site is structured like this: www.example.com/travel-guides (these are top-level ...
2
votes
4answers
536 views

Permalinks to Custom does not work (out of box)

I have tried to change mode of .htaccess in wordpress folder to 644. Yet, I get Not Found The requested URL /wordpress/features/ was not found on this server. I keep reading about rearranging my ...
2
votes
4answers
2k views

Using only %postname%

So I see everyone's arguements against using this, but that seems like a huge flaw in Wordpress because a domain name as close to the root is crucial to a site's SEO. I want my site which has rough ...
2
votes
3answers
6k views

How to change “wp-admin” to something else without search-replacing the core?

for example: foobar.com/wp/edit instead of foobar.com/wp/wp-admin How would I do that? I've tried using this in htaccess but it won't work: ##### ABOVE THIS POINT IS ALREADY INSERTED BY WORD PRESS ...
1
vote
6answers
163 views

Pages 404 in wordpress

First of all, I am very new to wordpress and know almost nothing about it. When I create the page foo using in wp-admin, I get the message that the page is created. When I click on view page, it ...
1
vote
2answers
2k views

How do I turn off 301 redirecting posts (not canonical)?

I noticed a strange behavior in WordPress where it automatically 301 redirects certain URL structures for posts. For example, I have a post entry for: mysite.com/999/about-us Then, you would think ...
0
votes
2answers
128 views

Basically the opposite MultiSite URL question that most people ask

Going to install a wordpress multisite in a subdirectory format. So a new site will be site.com/sitetwo/ or site.com/sitethree/ but what I need to do for the specific task at hand is change the url to ...
0
votes
0answers
48 views

404 even after a nice 301 redirect

With a nice solution I edited my .htaccess to do a permanent redirection to my blog. It's working fine. But... suddenly one of my plugin "Better WP Security" is peaking some 404 error that occurred ...
0
votes
1answer
82 views

Unable to access WP admin

I cannot access admin via: http://xxxxxx.com/admin or http://xxxxxx.com/wp-admin Fatal error: Class 'ObjectModel' not found in ...
0
votes
1answer
108 views

Prevent Wordpress from automatically correcting URLs

I notice that if I type in http://www.example.com/pag I can land on an existing page that has a name like http://www.example.com/page_five. I don't know exactly what causes this, but I want to know if ...
0
votes
4answers
2k views

Permalink Issues by Installing WordPress in Subdirectory / Subfolder

I installed WP in subfolder /cms and it runs live without subfolder. When I use /%postname%/ as permalink I get 404 error on my site. My Server supported mod_rewrite. My Code wp-config.php ...
0
votes
1answer
259 views

custom naming of search permalink /search/

I found this snippet online … function search_url_rewrite_rule() { if ( is_search() && !empty($_GET['s'])) { wp_redirect(home_url("/search/") . urlencode(get_query_var('s'))); ...
0
votes
1answer
530 views

rewriting search-permalink with htaccess - search results are are “opened” automatically?

when typing "a" into my search field (/?s=a) I my search.php template is loaded and all results that match that letter are shown. If I add this to my .htacess … RewriteCond %{REQUEST_URI} ^/$ ...
0
votes
2answers
2k views

Two “.htaccess” Files Located in Different Directories?

I found two ".htaccess" files, one is located in '/httpdocs/.htaccess', another one is located in '/httpdocs/wordpress/.htaccess', the content is different, is it normal? The Wordpress was installed ...
0
votes
1answer
71 views

wordpress permalinks tweeks

I am getting following permalink structure after creating any post... http://domain.com/wp/postname As per Permalink Settings.... Post name: http://domain.com/wp/sample-post/ This permalink is ...
0
votes
1answer
289 views

Can't access WP site over WiFi network

I'm making a mobile site and I'm using the main computers IP adress to connect to it from the iphone 10.0.0.1/wp With normal sites it works fine, but the WP site I get is stripped from CSS, JS, and ...
0
votes
1answer
87 views

Wordpress redirection to get url friendly

I want to get url friendly for pass data to page from other page. I explain : I have on i classic wordpress page, url like it : ( example.com/agent/name_agent ) it's url build dynamically. ( ...
0
votes
1answer
621 views

Redirecting all old links from previous EE site to new WP site in one go?

I'm about to migrate from an old Expression Engine website to a new WordPress site on the same domain. Is there anything I should be aware of with respects to redirecting old links? The old site is ...