Remove characters from URL
2 posts
• Page 1 of 1
Remove characters from URL
Hello,
I want to rewrite this request:
http://mysite.com/webpage.aspx%20
to
http://mysite.com/webpage.aspx
I tried the code below but this did not do the trick.
RewriteRule webpage.aspx%20 webpage.aspx [NC,R=301]
Is this possible?
I want to rewrite this request:
http://mysite.com/webpage.aspx%20
to
http://mysite.com/webpage.aspx
I tried the code below but this did not do the trick.
RewriteRule webpage.aspx%20 webpage.aspx [NC,R=301]
Is this possible?
Re: Remove characters from URL
I figured this out on someone else's post. Basically since the %20 is padding from a space in the URL, I was able to escape the space and it works. Here is what I did:
RewriteRule webpage.aspx/ webpage.aspx [NC,R=301]
I added a "/ "
RewriteRule webpage.aspx/ webpage.aspx [NC,R=301]
I added a "/ "
2 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 0 guests