| 8:31 pm on Feb 19, 2011 (gmt 0)|
The problem is likely the order of your rules.
You need the redirects to be listed before the wordpress rewrite code in the htaccess file - otherwise the rewrite code will kick in first once the files are deleted.
| 8:37 pm on Feb 19, 2011 (gmt 0)|
Such a simple explanation and I thank you very much. I will try it now!
| 9:06 pm on Feb 19, 2011 (gmt 0)|
Changing the order did not work. Files that exist are being rewritten properly, but files that are not on the server are still 404ing even though the rewrite rule is in place before the WordPress blurb. I tried putting the WordPress code at the bottom in root as well as putting the URL rewrite above WordPress code in /wp/.
Any other ideas?
| 9:22 pm on Feb 19, 2011 (gmt 0)|
After posting the above, I discovered an extra WordPress rewrite block that was injected into the middle of my .htaccess file in my root. After searching for "WordPress" and found the offending code (around line 2000 of 4900), and putting the proper code at the bottom, all works well!
I wish to thank you for all that you do! Your guidence is appreciated more then I can type!
| 9:34 pm on Feb 19, 2011 (gmt 0)|
There may be further problems for any request where an internal rewrite is invoked from the root .htaccess file before an external redirect is invoked from the /wp/ folder .htaccess file.
Be careful about this. It can silently kill your site indexing and rankings with very few clues.
| 9:40 pm on Feb 19, 2011 (gmt 0)|
I deleted the WordPress code block in the /wp/ .htaccess file and seems to be working.
However, after I add more redirect URL's, I will have to move the WordPress block in root back to the bottom of the file. So far, that is the only problem that I can come up with by just removing the /wp/ code block.
| 2:02 am on Feb 20, 2011 (gmt 0)|
The major problem comes about if any particular URL request triggers an internal rewrite from within the root .htaccess file and then triggers an external redirect from within the .htaccess file in any sub-folder.
Due to the processing order within Apache mod_Rewrite, the rules will be invoked in the "wrong" order and internal server filepaths will be exposed back out on to the web within the redirect.
| 10:56 am on Feb 22, 2011 (gmt 0)|
Thanks for this post.From many days i search that how can i create a redirect in word-press platform.So bro thanks for telling in this thread about Word press redirect.I bookmarked it.