fastsol1
07-31-2010, 01:12 PM
So I have recently updated a horrible old site to something fresh and good. It seems there are a lot of people that have held onto a certain page in there browser and even when the old files were still on the server this old site didn't function very well at all and had so many broken links it was ridiculous. I have made a load of Redirects in the .htaccess to my custom 404 page. When someone sees this page I have it set to email me the details of what they were looking for and where they came from unless it was saved in their favorites or typed directly then it doesn't show me where they came from.
The issue is that who ever built the old site files named them with spaces, not hyphens or underscores. So now I'm getting emails with page listings like this - shootersbilliardclub.com/The%20Room.html where the actual title of the file is The Room.html. So I would think that I would just copy the link and put it in the .htaccess file like any other redirect, but with the %20 in there it doesn't recognize the page when someone goes to it cause the browser window uses this - shootersbilliardclub.com/The Room.html so the redirect doesn't work. Now I have tried to put this - The Room.html into the .htaccess file but then if you go to the page it gives me a 500 internal server error cause of the space in the page name.
Hopefully that was clear enough, so how can I make the redirect work? I'm not real familiar with .htaccess code.
The issue is that who ever built the old site files named them with spaces, not hyphens or underscores. So now I'm getting emails with page listings like this - shootersbilliardclub.com/The%20Room.html where the actual title of the file is The Room.html. So I would think that I would just copy the link and put it in the .htaccess file like any other redirect, but with the %20 in there it doesn't recognize the page when someone goes to it cause the browser window uses this - shootersbilliardclub.com/The Room.html so the redirect doesn't work. Now I have tried to put this - The Room.html into the .htaccess file but then if you go to the page it gives me a 500 internal server error cause of the space in the page name.
Hopefully that was clear enough, so how can I make the redirect work? I'm not real familiar with .htaccess code.