Welcome to WebmasterWorld Guest from 54.204.165.156

Forum Moderators: Ocean10000 & incrediBILL & phranque

Forward slash problem in url

forward slash redirect problem

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

5+ Year Member



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)

10+ Year Member



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)

5+ Year Member



thanks, it works perfectly !
 

Featured Threads

Hot Threads This Week

Hot Threads This Month