how to redirect on windows server. i google it & i tried many combination but still not working. please share some valuable code or tips. thanks
Printable View
how to redirect on windows server. i google it & i tried many combination but still not working. please share some valuable code or tips. thanks
Here are some of my rules in .htaccess using modrewrite
If using a Windows server more than likely ISAPI rewrite is used.Code:RedirectMatch 301 ^/billing/(.*) http://www.hostking.co.za/$1
RedirectMatch 301 ^/web-hosting/(.*) http://www.hostking.co.za/blog/web-hosting/$1
RedirectMatch 301 ^/seo/(.*) http://www.hostking.co.za/blog/seo/$1
RedirectMatch 301 ^/websitepanel/(.*) http://www.hostking.co.za/blog/websitepanel/$1
This may help aswell:
Hope these helpHTML Code:RewriteBase
RewriteRule ^/isapi_old_page.asp$ /isapi_new_page.asp [NC,L,R=301,O]
Well first, you have to tell us what version of Windows and where Web server are you using, Apache or IIS?