wordpress - htaccess a dynamic URL -


i'm using wordpress plugin , it's making urls this: http://www.example.com/?name=the-office

i redirect similar urls http://www.example.com/name/the-office

current htaccess:      # begin wordpress <ifmodule mod_rewrite.c> rewriteengine on rewritebase / rewriterule ^index\.php$ - [l] rewritecond %{request_filename} !-f rewritecond %{request_filename} !-d rewriterule . /index.php [l] </ifmodule>  # end wordpress 

i tried few things , nothing seemed work, maybe i'm need place rewritecond in ifmodule? not sure, htaccess foreign me. in advance.

if you'd workaround easier accomplish - login wordpress admin panel, go settings, permalinks , there can select how links like. select last option (post name) post names in urls.


Comments

Popular posts from this blog

c++ - How do I get a multi line tooltip in MFC -

asp.net - In javascript how to find the height and width -

c# - DataTable to EnumerableRowCollection -