|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| ||||||||||||||||||||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Mod rewrite help if I may,
I have this simple mod re-rite rule to control my account on this server, it just allows me to handle multi[le URLs on one server.
*************** Code:
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]
*************** Thing is because the stats are one level up you cannot get to them, call up (URL address blocked: See forum rules)/stats/ comes up 404. So I need a new re-write rule for the stats but Im not savy on this scripting, any help please. scabs |
|
#2
|
||||
|
||||
|
Not a new rule. Modify the one you have now.
Code:
RewriteCond %{REQUEST_URI} !^/(mydomain|stats)/
I get the feeling you should be doing this differently, but at 11:30am I'm in no shape to think that hard ![]() |
|
#3
|
|||
|
|||
|
Biggest thanks, you have no idea how many forums I posted this on before you answered.
A thought, when that happens its funny how you go from thinking it must be so obvious folks are ignoring your post OR its so hard no one knows Thanks again! If the thought of how to do it better comes to mind I will keep an eye on this post.! Thumbs Up! |
![]() |
| Viewing: Dev Shed Forums > System Administration > Apache Development > Mod rewrite help if I may, |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|