apache - URL Rewriting with Wordpress -


i have wordpress running on apache, have url 1 :

https://www.mywebsite.com/fr/?type=manger

and want :

https://www.mywebsite.com/fr/manger/

i tried different things such :

rewriterule ^?type=manger$ manger/

but it's not working, 1 example i'm getting 500 error, , nothing. don't know if it's htaccess config, or because it's wordpress, or because i'm stupid ! :/

thanks !

use rule in .htaccess instead:

rewriterule ^fr/([^/]*)$ /fr/?type=$1 [l] 

make sure clear cache before testing this.


Comments

Popular posts from this blog

python Tkinter Capturing keyboard events save as one single string -

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

javascript - Z-index in d3.js -