Home rewritting url for replicated sites using htaccess
Reply: 0

rewritting url for replicated sites using htaccess

user680 Published in March 19, 2018, 6:21 pm

I'm having a problem rewriting the URL of a replicated site.

a replicated site has this format: https://domainname/sitename

so if you go into a subdirecotry in the system, url should look like this:


What I've tried so far is doing this:

RewriteCond %{REQUEST_URI} !^(.+)/index(.+)$       
RewriteRule ^(.+)/(.+)$ index.php?_route_=$2 [PT,L] 

which solves this format: https://domainname/sitename/sub1. But after putting up that rule it no longer accepts this https://domainname/sitename

any advice here?

You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.756615 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO