URL Rewriting with Wordpress

Asked by At

I have wordpress running on apache, I have some url like this one :


And I want it to be :


I tried different things such as :

RewriteRule ^?type=Manger$ manger/

But it's not working, with this one for example I'm getting a 500 error, and sometimes it just do nothing. Don't know if it's my htaccess config, or because it's wordpress, or because I'm stupid ! :/

Thanks !

1 Answers

Joe On

Use this rule in your .htaccess instead:

RewriteRule ^fr/([^/]*)$ /fr/?type=$1 [L]

Make sure you clear your cache before testing this.