Results 1 to 2 of 2

Thread: rewrite rule and forwarding

  1. #1
    Join Date
    Sep 2007
    Posts
    110
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default rewrite rule and forwarding

    I have a site we will call it mysite.com

    I made a beta page that looks like this mysite.com/beta

    issue i have is i forward all requests to mysite.com to mysite.com/beta

    But if someone types in mysite.com/admin or mysite.com/username
    it gives a page does not exist.

    How can i make it so all requests go to mysite.com/beta?

    Ive tried a few and I also tried wildcard but it created a loop cause of my beta being in the same DIR

  2. #2
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    Create a rewrite condition that the request is not /beta.
    Then create a rewrite rule to forward the user to /beta.

    It may work best using /beta/index.htm (or another extension) directly, unless you have many pages inside /beta.

    If you do have many pages inside beta, you can attach %REQUEST_URI% after /beta/, I believe.
    Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

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
  •