- Code: Select all
RewriteCond %{REQUEST_FILENAME} !^.*/(themes|logs|cgi-bin)($|/.*)
RewriteCond !%{THE_REQUEST} /(.*)/(.*).html
RewriteRule ^/([A-Za-z0-9-]+)($|/$) /SOURCEDIRECTORY/index.php?directory=$1 [L]
...
other rewrite rules
http://www.adres.com/PARAM1/PARAM2.html OR
http://www.adres.com/PARAM1($|/$)
if true SOURCEDIRECTORY/index.php?directory=PARAM1
else header 404
How Can I Do Rewrite