My server has an SSL setup on it and it has a site on there viewable in the browser via an IP.
I have an .htaccess file on the root with the following in it:
RewriteEngine on
RewriteRule ^single/([^/]*)$ single.php?url=$1 [L]
When I view the site URL:
https://100.100.100.100/single/test
I get a 404 not found. I have tried the actual URL:
https://100.100.100.100/single.php?url=test
And that works exactly as it should? Please note that isn't the actual IP
It works perfectly on a shared host. I have checked the server config and the Apache Mod rewrite is enabled.
You need the Query String Appended flag.
Try:
RewriteRule ^single/([^/]+) http://yourdomain.com/single.php?url=$1 [QSA]
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.