I want a URL which looks like something.html?ref=naif
which should be interpreted as index.php?page=something&ref=naif
I am not sure how this is done but I am pretty much sure its either very easy or very very difficult!
This is what I am using currently:
- Code: Select all
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !^/index\.php
RewriteRule ^([^.]+)\.html index.php?page=$1 [L]
I use it for something.html but now I want to add an extra argument to this...
I'd appreciate if someone could help me out here or point me to an article :)
Thanks,
-- Naif