1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Apache htaccess

Discussion in 'Apache' started by MCruz, Jul 31, 2015.

  1. #1
    I'm a beginner on Apache .htaccess files.

    I have made a rule to redirect, when i put ww.mywebsites.com goes to www.mywebsites.com /sites/test, the rule is:
    RewriteRule %{REQUEST_URI} !(.*)sites/test
    RewriteRule ^(.*)$ sites/test/$1 [L]

    How can I do another rule to redirect www.mywebsites.com /login to www.mywebsites.com /login
    Because the rule above is invalidating the access to /login

    Can someone give me a tip.
    MCruz, Jul 31, 2015 IP
  2. MCruz

    MCruz Peon

    Likes Received:
    Best Answers:
    Trophy Points:
    I have the following folder structure:
    • www-root
      • /sites/test ->Frontend
        • Config
        • Etc
      • /login -> Backend
    With this rule, bellow, when I put in my browser www.mywebsites.com I access to /sites/test
    RewriteRule %{REQUEST_URI} !(.*)sites/test
    RewriteRule ^(.*)$ sites/test/$1 [L]

    Can someone tell me what rule I have to put to access also to /login.

    MCruz, Jul 31, 2015 IP