Keep Server Online
If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
or
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.
| |
|
Topic: Re-Write rule, access to folder at root |
|
Author |
|
MrScabby
Joined: 28 Jun 2009 Posts: 2
|
Posted: Sun 28 Jun '09 4:17 Post subject: Re-Write rule, access to folder at root |
|
|
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
|
Posted: Tue 30 Jun '09 3:32 Post subject: |
|
|
well thanks for your help folks!
RewriteCond %{REQUEST_URI} !^/(mydomain|stats) |
|
Back to top |
|
|
|
|
|
|