I am new to htaccess rules.
I want a rule that will treat two urls as one.
This two should be treated as same URL. I just want to add sites/client1 to URL which actually does nothing. Every URL request should contain sites/client1/.
For next request like
Thanks for any help.
Try this:
RewriteRule index.php?(.*) sites/client1/index.php?$1
Also please search around a bit before posting here. Some possible duplicates of this question are these:
This will send all request in /sites/client1/ to /
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteRule ^sites/client1/(.*)$ $1 [L,QSA]
</IfModule>
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.