URLs containing +
2 posts
• Page 1 of 1
URLs containing +
We've had a spate of bad links where someone has appended a + to a variety of URLs
(e.g. index.html+) which were throwing up 401s.
I added in this rule:
#Get rid of erroneous html+ extensions
RewriteRule (.*)\.html\+ $1.html [NC,R=301,L]
But this did nothing. Until I found an old posting, that mentioned double-escaping.
In IIS7, you need to allow double escaping, and now it works.
(e.g. index.html+) which were throwing up 401s.
I added in this rule:
#Get rid of erroneous html+ extensions
RewriteRule (.*)\.html\+ $1.html [NC,R=301,L]
But this did nothing. Until I found an old posting, that mentioned double-escaping.
In IIS7, you need to allow double escaping, and now it works.
- HeliconAndrew
- Posts: 1264
- Joined: 07 Mar 2012, 10:16
Re: URLs containing +
ChickPea... you're doing a great job educating the community. Thank you!
2 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 0 guests