homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Code, Content, and Presentation / Apache Web Server
Forum Library, Charter, Moderators: Ocean10000 & incrediBILL & phranque

Apache Web Server Forum

Forward slash problem in url
forward slash redirect problem

Msg#: 4215592 posted 10:04 am on Oct 12, 2010 (gmt 0)

how do you redirect a url like this:


to this:

http://www.example.com/about.html ?

[edited by: jdMorgan at 3:16 pm (utc) on Oct 12, 2010]
[edit reason] Formatting fix only. [/edit]



10+ Year Member

Msg#: 4215592 posted 3:06 pm on Oct 12, 2010 (gmt 0)

Neither of the URLs you provide are valid URLs.

Should I assume that the question could be stated "how can I remove redundant forward slashes in URLs, redirecting back with a corrected version"?

For example

http://www.example.com//about.html should be redirected to http://www.example.com/about.html

If this is what you're asking, check out this thread here, which I found through google.




Msg#: 4215592 posted 4:11 pm on Oct 12, 2010 (gmt 0)

thanks, it works perfectly !

Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / Apache Web Server
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved