RewriteCond Host: name\.com
RewriteHeader Host: .* www\.anothername\.net\.ua
Tuesday, February 24, 2009
URL Rewriting with ISAPI
Wednesday, February 18, 2009
ISAPI Redirects Directory to Directory ("www" and without)
Scenario:
Redirect from:
name.com.ua\sub
to
name.com.ua\sublevel\subsub
and
www.name.com.ua\sub
to
www.name.com.ua\sublevel\subsub
In order to implement redirects:
Redirect from:
name.com.ua\sub
to
name.com.ua\sublevel\subsub
and
www.name.com.ua\sub
to
www.name.com.ua\sublevel\subsub
In order to implement redirects:
- You need ISAPI 3 installed on your Server (Download);
- Go to %root drive%\Program Files\Helicon\ISAPI_Rewrite3;
- Open the file httpd.conf with Notepad;
- Add to the bottom based on your requirements entries.
RewriteCond %{HTTP_HOST} ^name\.com\.ua$ [NC]
RewriteRule ^/sub http://name.com.ua/sublevel/subsub [NC,L,R=301]
RewriteCond %{HTTP_HOST} ^www\.name\.com\.ua$ [NC]
RewriteRule ^/sub http://www.name.com.ua/sublevel/subsub [NC,L,R=301]
Subscribe to:
Comments (Atom)