Revision: 7963
Updated Code
at October 21, 2008 05:54 by stancell
Updated Code
RewriteEngine On
RewriteBase /
RewriteRule ^images/.*$ - [L] # serve only static images
# redirect dev request from external IPs to production site
RewriteCond %{SERVER_NAME} ^dev.example.com$
RewriteCond %{REMOTE_ADDR} !^127.0.0.1$
RewriteRule (.*) http://www.example.com/$1 [R=302,L]
RewriteCond %{REQUEST_URI} !/css/ # do not apply this rule to /css/ folder
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^.*$ /index.php [QSA,L] # not found requests redirect to index.php
Revision: 7962
Updated Code
at August 27, 2008 04:04 by stancell
Updated Code
RewriteEngine On
RewriteBase /
RewriteRule ^images/.*$ - [L] # serve only static images
RewriteCond %{REQUEST_URI} !/css/ # do not apply this rule to /css/ folder
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^.*$ /index.php [QSA,L] # not found requests redirect to index.php
Revision: 7961
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at August 25, 2008 08:58 by stancell
Initial Code
RewriteEngine On
RewriteBase /
RewriteRule ^images/.*$ - [L] # serve only static images
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^.*$ /index.php [QSA,L] # not found requests redirect to index.php
Initial URL
Initial Description
Initial Title
Static and dynamic rewrites
Initial Tags
Initial Language
Apache