Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

SSL Redirection on certain page types


Reply


3 Posts   1367 Views

Avatar
dayer

Community Member, 11 Posts

1 August 2010 at 6:26am

Hi,

I have seen the [url=http://doc.silverstripe.org/ssl]documentation about SSL[/url] for certain page types, but when I try to access to a MySecurePage page type, https://localhost/ss/new-mysecurepage/ for example, I obtain:

Not Found
The requested URL /ss/new-mysecurepage/ was not found on this server.
Apache/2.2.16 (Debian) Server at localhost Port 443

but if I set SSL for all pages then all goes very well.

I have discovered that if I access to https://localhost/ss/index.php and not https://localhost/ss then I can access to certain SSL pages due to this link to https://localhost/ss/index.php/new-mysecurepage/.

Is normal this problem?
Thanks!

Avatar
dayer

Community Member, 11 Posts

1 August 2010 at 7:27am

Hi again,

I have tried to change in .htaccess

RewriteCond %{REQUEST_URI} ^(.*)$


for

RewriteCond %{REQUEST_URI} index.php^(.*)$


and now it appears goes ok.

Avatar
dayer

Community Member, 11 Posts

8 August 2010 at 5:53am

Another solution is change in own VirtualHost AllowOverride None for AllowOverride All