https and rewrite

Fix it!!

https and rewrite

Postby bajo » Sat May 31, 2008 3:05 pm

Hi all. I'm stuck and I realy need your help. I have a very simple rewrite rule:

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?
bajo
 
Posts: 1
Joined: Sat May 31, 2008 2:38 pm

Postby richardk » Sun Jun 01, 2008 10:31 am

Does this mod_rewrite test work for HTTPS? If it does not then mod_rewrite is not enabled and/or allowed for HTTPS and you will have to ask your host to enable it for you.
richardk
 
Posts: 8800
Joined: Wed Dec 21, 2005 7:50 am

Postby ManWithAPlan » Tue Jul 15, 2008 12:44 pm

I appear to be having this same problem.

Can anyone shed some light on this?
ManWithAPlan
 
Posts: 1
Joined: Tue Jul 15, 2008 12:42 pm

Postby richardk » Tue Jul 15, 2008 3:25 pm

richardk wrote:Does this mod_rewrite test work for HTTPS?
richardk
 
Posts: 8800
Joined: Wed Dec 21, 2005 7:50 am


Return to Security with Mod_Rewrite

Who is online

Users browsing this forum: No registered users and 4 guests

cron