View Single Post
02-11-2009, 10:50 PM
#1
aLx is offline aLx
Status: Senior Member
Join date: Jan 2006
Location: USA
Expertise:
Software:
 
Posts: 922
iTrader: 13 / 100%
 

aLx is on a distinguished road

Send a message via AIM to aLx

  Old  mod_Rewrite help needed...!

hey,

i've got modest goals but limited knowledge. basically, i want all files to load as index.php if they are a fake directory. .jpg and .gif and .css cannot be executed as index.php by any means.. it messes up the template.

Code:
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} -s
RewriteRule ^.*$ - [NC,L]
RewriteRule ^.*$ index.php [NC,L]
I thought this code would do it, but alas, it does not.

and i cant just redirect them, once the page is loaded as index.php it explodes the URL using php and then figures out what page it should display then.