Software
Question:
How do you hide URL extensions using Microsoft URL Rewrite Module?
Arthur
2010-03-06 12:39:22 UTC
Example would be:
mysite.com/page.html > mysite.com/page
Three answers:
anonymous
2010-03-06 12:52:27 UTC
For which web server? For Apache, see http://httpd.apache.org/docs/1.3/mod/mod_rewrite.html
For IIS see http://www.isapirewrite.com/
eda
2016-05-31 11:27:32 UTC
WHy not use a service like noip or tinyurl both of them can be used to change what the browser sees as the url before you click it.
?
2010-03-10 03:11:23 UTC
I'm using IIS and installed rewrite filter - ISAPI_Rewrite.
Here is how it works http://www.helicontech.com/forum/forum_posts-TID-10648.htm - simple FAQ that allows to start.
The rule in your case is:
RewriteEngine on
#Redirect extension requests to avoid duplicate content
RewriteRule ^([^?]+)\.html$ $1 [NC,R=301,L]
#Internally add extensions to request
RewriteCond %{REQUEST_FILENAME}.html -f
RewriteRule (.*) $1.html
ⓘ
This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...