I'm managing a wordpress blog like example.com/site/hello-world/
and I want to hide the site prefix. One thing I can do is to reinstall but that's not suitable as the blog is huge.
so how can I do with with .htacess?
I'm managing a wordpress blog like example.com/site/hello-world/
and I want to hide the site prefix. One thing I can do is to reinstall but that's not suitable as the blog is huge.
so how can I do with with .htacess?
Try this
Options +FollowSymLinks -MultiViews
# Turn mod_rewrite on assuming you havent already
RewriteEngine On
RewriteBase /
RewriteRule ^site/(.*)$ /$1 [L,NC,R]
Here are the tags used
L - Last
NC - Ignore (No) Case comparison
R - External redirection with 302