Page is a not externally linkable
- Code, Content, and Presentation
-- Apache Web Server
---- Rewriting urls with special characters


phpmaven - 8:38 pm on Nov 11, 2012 (gmt 0)


Hi All,

I've been search for a couple of hours and can't seem to find an answer.

I have a few websites with malformed urls that I would like to redirect. I'm using a rewrite map but can't figure out how to match these urls.

I'm using:
RewriteMap redirects_map txt:/usr/local/www/redirects.map

Here's an example of a page I want to match against.

example_%E2%80%8Bpage.html

Of course just putting that page name in my url list in map text file doesn't work.

Is there some way I can enter an escaped version of the url in my map file or what would be the correct way to do this? I also have a few pages with %20 (space) in the url as well

Thanks,

Mark


Thread source:: http://www.webmasterworld.com/apache/4518100.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com