homepage Welcome to WebmasterWorld Guest from 54.205.242.179
register, free tools, login, search, subscribe, help, library, announcements, recent posts, open posts,
Pubcon Website
Visit PubCon.com
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
getoffmyisland




msg:4215594
 10:04 am on Oct 12, 2010 (gmt 0)

how do you redirect a url like this:

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

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]

 

sublime1




msg:4215734
 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.

[webmasterworld.com...]

Tom

getoffmyisland




msg:4215770
 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.
Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About
© Webmaster World 1996-2014 all rights reserved