jdMorgan

msg:1510049 | 4:06 am on Dec 16, 2005 (gmt 0) |
Try using RedirectMatch -- It will allow you to use regular expressions, and so insert a space by preceding it with the regex 'escape' character "\".
RedirectMatch 301 ^/mydir/fi[b]le\ na[/b]me.html$ http://example.com/mydir/filename.html
If that doesn't work, you can definitely use mod_rewrite to handle this problem -- It comes up fairly often in this forum. Jim
|
anax

msg:1510050 | 4:44 am on Dec 16, 2005 (gmt 0) |
Thanks - I just gave that a try, and it it kicked up a 500 server error that made the whole site inaccessible. ModRewrite is way beyond me, so I'll probably just have to let the error sit there.
|
JAB Creations

msg:1510051 | 1:12 am on Dec 18, 2005 (gmt 0) |
You ~REALLY~ do not want to be using spaces in file names. Stick to underscores or dashes to be safe.
|
buy_online

msg:1510052 | 2:54 am on Dec 18, 2005 (gmt 0) |
"You ~REALLY~ do not want to be using spaces in file names. Stick to underscores or dashes to be safe." He's not. Someone else is linking to him incorrectly, or directly entering it in the address bar. At least that's what he said in his post (The first one above ^^). F
|
jdMorgan

msg:1510053 | 3:10 am on Dec 18, 2005 (gmt 0) |
> it kicked up a 500 server error that made the whole site inaccessible. Most 500-Server Errors do... :) So what was in your server error log file when you got that 500 response? -- It'll often tell you exactly what's wrong if it is a server-level error. If you want to try mod_rewrite and your server setup allows it, I know this works because I'm using it:
Options +FollowSymLinks RewriteEngine on RewriteRule ^([^\ ]*)\ (.*)$ http://www.example.com/$1$2 [R=301,L]
Jim
|
|