Currently i have 20+ URLs on my site in this formate
http://www.example.net/content/index/mission
I want to remove /content/index from all URLs, so they should look something like this
http://www.example.net/mission
In other words I would to always remove /content/index from the url. I'm sure it's really straight forward, but I'm not very experienced with Apache.
You would need the rewrite module of Apache: mod_rewrite
.
Then do something like this:
RewriteEngine on
RewriteRule ^content/index/(.*)$ $1
Here is the official documentation of mod_rewrite: click
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With