Welcome to WebmasterWorld Guest from 23.22.220.37

Forum Moderators: Ocean10000 & incrediBILL & phranque

Message Too Old, No Replies

Forward slash problem in url

forward slash redirect problem

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

Junior Member

5+ Year Member

joined:Mar 12, 2010
posts: 49
votes: 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]

3:06 pm on Oct 12, 2010 (gmt 0)

Preferred Member

10+ Year Member

joined:June 10, 2003
posts:410
votes: 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
4:11 pm on Oct 12, 2010 (gmt 0)

Junior Member

5+ Year Member

joined:Mar 12, 2010
posts: 49
votes: 0


thanks, it works perfectly !