www.webdeveloper.com
Results 1 to 2 of 2

Thread: HTACCESS Rewrite & Redirect

  1. #1
    Join Date
    Aug 2010
    Posts
    1

    HTACCESS Rewrite & Redirect

    Hi!

    I've Googled and tried on my own for hours but still nothing. It's an easy problem so I think it will take someone only 5 minutes to solve it.

    I need to perform two things with HTACCESS:

    1) All URLs like http://*.domain.com/category/uncategorized should be rewritten to http://*.domain.com/home
    2) Redirect visitors from http://*.domain.com/ to http://*.domain.com/home

    Asterik (*) should be replaced with a wildcard because I've got lots of sub-domains and there will be even more.

    Thanks in advance!

  2. #2
    Join Date
    Aug 2010
    Posts
    41

    Question 2

    Hey there,

    I am not quite sure what you are asking about the 1st question, but I know how to redirect.

    Put this code on the http://*.domain.com/ page. Put it in between the head tags

    Code:
    <meta http-equiv="refresh" content="0;url=http://*.domain.com/home" />
    The Red 0 determines the delay.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles