
06-05-2007
|
| Administrator
Join Date: Jun 2007
Posts: 3,729
BRL$: 31,961.50 Thanks: 0
Thanked 4 Times in 4 Posts
Rep Power: 403 | | Rewrite Url Not Working As Expected I'm trying to add a redirect (rewrite) to my .htaccess file.
The file used to have about 20 rewrites from old page names, all were working fine and were recently removed since enough time had passed for the old URLs to slip out of sight. One of the previous redirects was left and is still working fine.
Now I'm trying to add another redirect and I just can't get it to work. An edited example of the code is below.
CODE
RewriteEngine on
RewriteRule ^/shopping$ /shopping-index.php
RewriteRule ^/newabbreviation$ /newdestination.php
Like I say, the /shopping redirect works fine but the new addition doesn't, so I'm sure it must be something I'm doing but I can't figure out what :'-(
My local environment is XP/Apache my online environment is Linux/Apache, I've tested each variation I've tried on both setups but am always getting the same result (a 404 not found error).
Any help is appreciated, and thanks in advance To view links or images in this forum your post count must be 1 or greater. You currently have 0 posts. | |
__________________ █ High Quality To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts.
█ Powerful To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts.
█ To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts. | | | |