Forum Moderators: phranque
I have been wrestling with a problem for the past few days.
I have a website created using Frontpage2003 with extensions and I use the publishing tool. The site resides on an Apache server.
I am getting some 404 errors due to changing some url paths and I am attempting to edit the .htaccess file.
DETAILS
I need to redirect an old URL to a new one and have tried many attempts to do this unsuccessfully. The root of my problem seems to be spaces in my url titles that get replaced with %20.
EXAMPLE: http://www.example.com/In-Wall%20Speaker%20System.htm
I am trying to do the following redirect but it does not work:
redirect permanent ^Ceiling%20Fan%20Wiring\.htm$ http://www.example.com/Electrical%20Articles/Ceiling%20Fan%20Wiring.htm
After doing a few variations of the below test I can see that I can do a redirect when no spaces (%20) are involved with the orignal Url. Once I try to redirect a page that had spaces in the title (%20) the below code causes 500 server error:
Options +Indexes
Options +FollowSymlinks
RewriteEngine on
RewriteBase /
RewriteRule ^wacko\.html$ index.html [L]
Any help would be greatly appreciated.
[edited by: jdMorgan at 3:37 pm (utc) on July 22, 2006]
[edit reason]
[1][edit reason] example.com [/edit] [/edit][/1]