All I need to do is pass a variable from the url using an internal rewrite (ie its not seen).
- Code: Select all
example.com/lorem
to
- Code: Select all
example.com/index.php?file=lorem
Can anyone help me?
EDIT:
- Code: Select all
Options +FollowSymLinks
RewriteEngine On
RewriteCond %{ENV:REDIRECT_STATUS} ^$
RewriteRule ^(.*)$ /index.php?file=$1 [QSA,L]
Stole this from another place, its not helping me much though.
EDIT: I GOOOOTTTT IT. These forums own.
Even though they seem to love pron.
EDIT: Can I make it not apply for one condition? Say not apply for the index page.