SitePoint Sponsor

User Tag List

Results 1 to 3 of 3

Hybrid View

  1. #1
    SitePoint Member
    Join Date
    Nov 2012
    Posts
    5
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    How do I redirect on Windows?

    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

  2. #2
    SitePoint Enthusiast
    Join Date
    Nov 2012
    Location
    Cape Town, South Africa
    Posts
    40
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Here are some of my rules in .htaccess using modrewrite

    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
    If using a Windows server more than likely ISAPI rewrite is used.

    This may help aswell:

    HTML Code:
    RewriteBase 
    RewriteRule ^/isapi_old_page.asp$ /isapi_new_page.asp [NC,L,R=301,O]
    Hope these help

  3. #3
    . shoooo... silver trophy logic_earth's Avatar
    Join Date
    Oct 2005
    Location
    CA
    Posts
    9,013
    Mentioned
    8 Post(s)
    Tagged
    0 Thread(s)
    Well first, you have to tell us what version of Windows and where Web server are you using, Apache or IIS?
    Logic without the fatal effects.
    All code snippets are licensed under WTFPL.



Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •