Today's Posts Follow Us On Twitter! TFL Members on Twitter  
Forum search: Advanced Search  
Navigation
Marketplace
  Members Login:
Lost password?
  Forum Statistics:
Forum Members: 24,254
Total Threads: 80,792
Total Posts: 566,471
There are 1437 users currently browsing (tf).
 
  Our Partners:
 
  TalkFreelance     Design and Development     Programming     PHP and MySQL :

mod_Rewrite help needed...!

Thread title: mod_Rewrite help needed...!
Closed Thread    
    Thread tools Search this thread Display Modes  
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.

02-12-2009, 05:05 AM
#2
doltter is offline doltter
doltter's Avatar
Status: I'm new around here
Join date: Nov 2007
Location:
Expertise:
Software:
 
Posts: 24
iTrader: 0 / 0%
 

doltter is on a distinguished road

Send a message via MSN to doltter Send a message via Yahoo to doltter Send a message via Skype™ to doltter

  Old

RewriteRule ^.*$ index.php [NC,L]

Change this.

02-12-2009, 07:29 PM
#3
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

.. change it to what?

02-13-2009, 10:31 PM
#4
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

anyone here familiar with mod_rewrite..

Closed Thread    


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

  Posting Rules  
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump:
 
  Contains New Posts Forum Contains New Posts   Contains No New Posts Forum Contains No New Posts   A Closed Forum Forum is Closed