logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: Re-Write rule, access to folder at root
Author
MrScabby



Joined: 28 Jun 2009
Posts: 2

PostPosted: Sun 28 Jun '09 4:17    Post subject: Re-Write rule, access to folder at root Reply with quote

Hi all,

I have a rewrite rule on my server that allows for multiple URLs such,

RewriteEngine On
Options +FollowSymlinks
RewriteBase /
RewriteRule ^([^\.]+[^/])$ http://%{HTTP_HOST}/$1/ [R=301,L]
RewriteCond %{HTTP_HOST} ^(www\.)?mydomain\.com$
RewriteCond %{REQUEST_URI} !^/mydomain/
RewriteRule ^(.*)$ mydomain/$1 [L]

It redirects the visitor to a folder with the site in. Thing is the STATs for the site is on the root, what do I need to add to access this,

Phil
Back to top
MrScabby



Joined: 28 Jun 2009
Posts: 2

PostPosted: Tue 30 Jun '09 3:32    Post subject: Reply with quote

well thanks for your help folks!

RewriteCond %{REQUEST_URI} !^/(mydomain|stats)
Back to top


Reply to topic   Topic: Re-Write rule, access to folder at root View previous topic :: View next topic
Post new topic   Forum Index -> Apache