- Code: Select all
Options +FollowSymlinks
RewriteEngine on
RewriteBase /
RewriteRule ^page/([0-9]+)$ ?pid=$1 [QSA,L]
As you can see, it rewrites address ie. http://mysite.com?pid=1 to http://mysite/page/1
It works great but only for HTTP request. The site needs to be SSL certified, and this rule doesn't seem to work for HTTPS requests. When I enter https://mysite.com/page/1, I get Apache error: "Not Found The requested URL /page/1 was not found on this server. "
Any ideas?