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)

2
votes
1answer
888 views

How to rewrite WordPress uploads folder to another folder using htaccess

I found that the following code online could be used to spoof the WordPress uploads folder, rewriting URLs to a different folder on the server: # BEGIN Spoof wp-content/uploads directory ...
0
votes
1answer
175 views

url rewrite .htaccess extension to permalink

I have a custom page and template, that I'm passing a query-string to. It has a wordpress permalink like so /mypage/ I want to be able to add another rule so that the permalink receives a slug ...
0
votes
1answer
589 views

Help with a custom rewrite

The following is a snippet from single.php </div> <?php endif; ?> <?php ...
1
vote
2answers
494 views

Can Wordpress redirect to a “similar page” in case of 404 error

This stuff is driving me nuts. The following url does NOT exist and should return a 404: http://www.easyjob.net/resume/ However, if I try to access it, I get a 301 to ...
0
votes
1answer
811 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 ...
4
votes
2answers
215 views

What does a security risk in a plugin look like?

My server was hacked this weekend. By the Russians! Of the 50+ domains on my server, every single one had a hacked .htaccess file which was redirecting search results and a few other things to a ...
0
votes
2answers
245 views

How to change wordpress news root url

I have a site and my customer has decided the url for what used to be news should now be renamed to tips-and-tricks, but we want to keep the old urls too because we don't want to lose old links. I've ...
0
votes
1answer
248 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
101 views

New installation can't be found due to htaccess of the original non-Wordpress site

I have a non-Wordpress site , www.example.com For canonicalization purposes I have this in .htaccess : Options +FollowSymLinks RewriteEngine On RewriteCond %{HTTP_HOST} !^www\.example\.com$ ...
2
votes
1answer
583 views

Issue with using .htaccess to redirect feedburner feed

I am using year/month/post-name permalinks, and also using the download-monitor plugin to handle file downloads. I added rewrite rules to the top of the .htaccess file following the instructions at ...
0
votes
1answer
532 views

How to add multiple rewrite rules to WordPress .htaccess and delete them separately?

After an intense research without finding the proper answer I decided to ask my question here. I need to add some rewrite rules when activating a plugin in WordPress without existing custom rules ...
0
votes
2answers
263 views

Cannot find webarh/malware redirect infection that only shows on Chrome

Several months ago my site (powered by WordPress) got hit by that webarh malware infection that set up a bunch of .htaccess redirects to its domain. Restoration of a good site backup nixed the ...
1
vote
1answer
383 views

Restrict access of admin uploads to certain logged-in users?

This is a very open-ended, speculative question with lots of possible angles: has anyone worked with ways to restrict the access of certain uploads to a logged in user? I.e., how can the site admin ...
0
votes
1answer
677 views

Can't get pretty permalinks to work without index.php

I've worked with WordPress for a while now and this is the first time I've had this problem, I can't get my permalinks to work without index.php on the URL even though mod_rewrite is enabled, a few ...
2
votes
2answers
859 views

wordpress htaccess is hijacking my .mp4 files

I am running wordpress 3.2rc2 multisite. I inserted a few .mp4 videos into the root of my domain so that I can run a few basic tests with the jw player. When I try to access the url to the .mp4 ...
0
votes
2answers
576 views

Redirect wrong links Wordpress

I am using the following permalinks structure: /%postname%/ and I also have some multi-page posts that look like /%postname%/2. The problem is I see a lot of 404 errors in webmaster tools for urls ...
1
vote
3answers
3k views

TimThumb & htaccess : clean url

Do you know if there's a way to alter via htaccess the timthumb urls ? My question is if i can change for example urls like this ...
1
vote
1answer
287 views

Server crashed trying to restore wordpress multisite, images are not found pls help

I had an issue with a server that was serious enough to have to take it completely offline and then rebuild the os. I have gotten to the point where the new server is up and running. I have managed ...
1
vote
1answer
65 views

How to redirect http://mydomain/blog/blahblah/ to http://mydomain/blahblah/ in wordpress htaccess?

I would like the htaccess rewrite rule to compare to IIS rewrite rule I tried which doesn't seem to work: <rule name="rewrite /blog/"> <match url="^blog/([_0-9a-zA-Z\-]+)/$" /> ...
2
votes
0answers
172 views

need a help for modify .htaccess rule [closed]

here is my wp .htaccess # BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase /wordpress/ RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond ...
3
votes
3answers
939 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 ...
0
votes
3answers
320 views

How to redirect a virtual page (e.g. /blog) to the home page?

I want my to reach my website's main page when entering an url like: http://example.com/blog However, I can't seem to get it to work with a typical rewrite rule: RewriteRule ^/blog$ / I'm always ...
1
vote
1answer
141 views

If I change permalink structures, can I use htaccess to permanantly redirect links?

Ive got some super old links that have a lot of SEO juice and I dont want to lose that if I change permalink structure. This is partly due to the older version of WP i have (2.1) I want to use post ...
2
votes
1answer
2k 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 ...
0
votes
2answers
1k views

mod-rewrite exception? keep #hash in matching urls?

Hey guys, My WordPress permalink structure is set to `/%postname%/. When I create a page with a name "FAQs" the permalink generated is "mydomain.com/faqs". When I link to this page in my code ...
0
votes
1answer
624 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 ...
1
vote
1answer
402 views

Wordpress 3.1 .htaccess contents keep dissappearing?

I have Wordpress 3.1 installed in a subdirectory of a shared hosting account, it's a linux server and mod_rewrite is enabled and working fine elsewhere. The contents of the .htaccess file disappear ...
0
votes
2answers
1k views

Problems redirecting to “pretty” permalinks (wordpress in Subdirectory)

I've got problems getting pretty permalinks to work. When changing the permalinks (e.g. to month/name), my .htaccess (in the wordpress directory - there is another one one level up) is changed like ...
0
votes
3answers
965 views

WordPress category gives 404 after moving to a different domain

I just moved a site from one domain to another and now category links are all 404. I have flushed the rewrite rules, recreated the .htaccess file but still it throws up 404. Weird thing is that if I ...
1
vote
1answer
7k views

htaccess disable Wordpress rewrite rules for folder and its contents

I have another PHP application in a folder named app inside my Wordpress installation, and I need to disable all Wordpress rewrite rules for that folder and it's content. So that when I go to ...
1
vote
1answer
159 views

htaccess redirect dynamic posts

Probably not the correct fora to ask, but.. Also probably a simple question.. We are changing our site to Wordpress, and need to redirect old posts. Previously structure: ...
0
votes
2answers
935 views

Why is my mod_rewrite not working?

Ok I have a WP site using the permalink structure of /%category%/%postname%/ I have built it in the way of page templates, using category queries inside, i.e. page-help.php <?php $my_query = new ...
0
votes
1answer
181 views

Wordpress and Htaccess

Removing RewriteBase / from my htacess has sped up my site which is still working correctly. Is it really required and what is it for?
1
vote
1answer
521 views

How to override .htaccess with new rules without ftp or edit it manual

I want script will add new rules to current .htaccess and user no need to ftp or edit it manually. Example, I use timthumb for resize image on my theme and want rewrite the URL and current .htaccess ...
0
votes
1answer
301 views

Date based redirects of posts that no longer exist

I want a more elegant way to express the following redirect: RewriteCond %{REQUEST_URI} ^/blog/2008/(.*) [NC, OR] RewriteCond %{REQUEST_URI} ^/blog/2009/01/(.*) [NC, OR] RewriteCond %{REQUEST_URI} ...
1
vote
1answer
502 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 ...
-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 ...
2
votes
1answer
4k views

Wordpress .htaccess subdirectory problem

I've been having some issues with my Wordpress install allowing me to access subdirectories, specifically a CodeIgniter install at mydomain.com/codeigniter. I know that technically it should work just ...
3
votes
2answers
642 views

W3 Total Cache Plugin with WP 3 MultiUser

I'm having some strange behavior with my W3 Total Cache solution working on my multi-user Wordpress 3 installation. The multi-user is setup to use sub directories, and I'm using all types of caching ...
2
votes
2answers
1k views

When WordPress Does Not Provide an .htaccess File for New Multisite Sites because of CPanel Fantastico Auto-Installer?

I have installed WordPress via an auto-installer and later configured it as multisite. But whenever I create the WordPress site using auto-installer it doesn't give me the .htaccess file by default. ...
2
votes
1answer
964 views

Change of permalink structure - redirects in htaccess breaks the archive links

When I started with my blog, the permalinks and following structure: http://<domain>/%year%/%monthnum%/%day%/%postname%/ Some time ago, I changed the permalink structure to ...
2
votes
2answers
607 views

Using WP rather than .htaccess to redirect pages/posts

I run a site with over 100 specific redirects in the htaccess for legacy html files that were subsequently brought into WP. There are also rules for pages within a date range to redirect to the home ...
0
votes
1answer
1k views

How can I resolve a .htaccess internal server error setting up a WordPress multisite?

I am stuck in .htaccess file creation for multisite. I am getting an error in page now internal error 500 and when i checked my log in apache it says C:/www/vhosts/localhost/wordpress3/.htaccess: ...
3
votes
4answers
848 views

Plugin to edit htaccess file

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

Error Message from W3 Total Cache when .htaccess Rules Cannot Be Modified?

I have just installed the Plugin " W3 Total Cache " .I have enabled permalinks too. Then it is showing a message Browser Cache feature is not operational. Your .htaccess rules could not be ...
1
vote
1answer
916 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
473 views

Wordpress login fail after .htaccess domain redirect

I use .htaccess to redirect requests to my (new) domain to another domain hosted on different server. The file contains: Options +FollowSymlinks RewriteEngine on RewriteBase / RewriteCond ...
0
votes
2answers
180 views

hosted wordpress.com to local directory?

This question was posted at onstartups - one that I frequently hear. Figure that I would ask the experts over here - can one maintain a hosted wordpress.com blog yet make it a subdirectory under ...
-1
votes
1answer
322 views

htaccess strip url

I have my permalink set to %postname%/%location%/%course% I want this permalink %location%/%course%/%postname% but due to this I get 404 on every page but not on posts, I decided to put this permalink ...
1
vote
1answer
170 views

Using HTACCESS for Secret Access

I saw this post yesterday http://digwp.com/2011/01/simpler-login-url/ where a 'custom' word is used to direct the user from url.com/admin to url.com/wp-login.php and I'm asking (also did so in the ...