hi

try this

 

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [NC,L]
RewriteRule ^.*$ index.php [NC,L]

 

hope this helpes
 

mohammed alsharaf

http://www.safitech.com

 


From: [email protected]
To: [email protected]
Subject: [phpug] Stuck with mod_rewrite
Date: Mon, 4 May 2009 23:48:55 +1200

Any mod_rewrite expert?
I have an .htaccess file in a domain redirecting all requests to the index 
page, a standard rewrite for any modern CMS. It looks like this:

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule ^(.*)$ index.php/$1 [L] 
</IfModule>


Now, my hosting company gives me webalizer stats if I go to mydomain.com/stats. 
Of course, since I added the .htaccess file, the stats url stopped working. So 
I said, cool, I'll google some help and in 2 minutes I'll fix it. Wrong! So far 
I'm stuck with:



<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /

RewriteCond %{REQUEST_URI} !/stats
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule ^(.*)$ index.php/$1 [L]

</IfModule>


But no luck... any hints?





Matias Gertel
Freelance Web Development & Coding
e: [email protected]
m: +64 21 288 8840
p: +64 9 838 3367



_________________________________________________________________
Pinching the hip-pocket nerve? Find your recession tips at MSN NZ Money
http://money.msn.co.nz
--~--~---------~--~----~------------~-------~--~----~
NZ PHP Users Group: http://groups.google.com/group/nzphpug
To post, send email to [email protected]
To unsubscribe, send email to
[email protected]
-~----------~----~----~----~------~----~------~--~---

Reply via email to