I want to redirect
https://www.example.es actual/date/ 实际/日期/
to
https://www.example.es actual/date/ 日期/
I am try
RewriteEngine on
RewriteCond %{THE_REQUEST} ^[AZ]{3,}\s/{2,} [NC]
RewriteRule ^(.*) $1 [R=301,L]
but it redirect to
https://www.example.es/ home/website/public_html /actual/date/
How can i fix this?
Update, it code work fine:
RewriteEngine on
RewriteCond %{THE_REQUEST} //+(.+)\sHTTP
RewriteRule ^ /%1 [L,R]
Remove double Slashes in URL and remove index.php Apache
try this out:
RewriteCond %{THE_REQUEST} ^[A-Z]{3,}\s/{2,} [NC]
RewriteRule ^.*?public_html\/(.*?)$ $1 [R=301,L]
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.