mod rewrite - php mod_rewrite Permalinks -
i looking way access to:
http://myurl.com/?file=random_token
with
http://myurl.com/random_token/
i read mod_rewrite in .htaccess don't know how setup pattern.
i tried this:
options +followsymlinks rewriteengine on rewriterule /(.*)/$ /index.php?file=$1
it nice if can me.
rewriteengine on rewritecond %{request_filename} !-f rewritecond %{request_filename} !-d rewriterule ^([^/]*)/$ /?file=$1 [l]
Comments
Post a Comment