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

Popular posts from this blog

Delphi XE2 Indy10 udp client-server interchange using SendBuffer-ReceiveBuffer -

Qt ActiveX WMI QAxBase::dynamicCallHelper: ItemIndex(int): No such property in -

Enable autocomplete or intellisense in Atom editor for PHP -