So far I include everything in index.php:
rewrite on rewriting Code% {REQUEST_FILENAME}}! -d Recovery code% {REQUEST_FILENAME}! -f Rewrite rules ^ (. *) $ Index.php? Page = $ 1 [QSA, L] There are also pages where I use $ _GET like this:
SELECT * News WHERE id = ".interval ($ _GET ['id']) If I click news = id = 1 instead of ? Like = news & amp; id = 1 , but I want to be able to use news / 1 .
Rewrite rule must be added, where do I use GET? Or is there a better way?
I hope that I do not have to do all this for my pages.
with this single rule Both should be allowed without and without id (and also makes a slash optional):
Rewriteum ^ ([^ /] *) (/ ([^ /] *) /?) ? $ Index.php? Page = $ 1 and id = $ 3 [QSA, L] If you do not want to allow / and //, * To + 's
Comments
Post a Comment