inversesoft123 Posted August 6, 2014 Share Posted August 6, 2014 Hello All, I have mod_rewrited working properly but when I enabled SSL it stopped working. Please help me its really frusterating now RewriteEngine On RewriteCond %{HTTPS} !=on RewriteRule (.*) https://%{SERVER_NAME}/$1 [R,L] RewriteRule ^shorter/(.*)$ shorter.php?longurl=$1 [L] RewriteRule ^([0-9a-zA-Z]{1,6})$ redirect.php?url=$1 [L] RewriteRule (.*)playlist.xml$ playlist.php [L] # Playlist RewriteRule ^(.*)/$ /index.php?page=$1 [L] RewriteRule ^(.*)/(.*)/$ /index.php?page=$1&id=$2 [L] RewriteRule ^(.*)/(.*)/(.*)/$ /index.php?page=$1&id=$2&no=$3 [L] RewriteRule ^(.*)/(.*)/(.*)/(.*)/$ /index.php?page=$1&id=$2&no=$3&trkid=$4 [L] RewriteRule ^(.*)/(.*)/(.*)/$ /index.php?page=my_profile&code=$2&state=$3 [L] In this site redirects properly to https but it do not work with permalinks http://www.domain.com/music/ << was working fine https://www.domain.com/music/ << Now stopped I Tried RewriteRule (.*)playlist.xml$ https://%{SERVER_NAME}/playlist.php [L] # Playlist #AND Optionally RewriteRule (.*)playlist.xml$ https://www.domain.com/playlist.php [L] # Playlist But no success Please help Quote Link to comment https://forums.phpfreaks.com/topic/290307-ssl-enabled-mod_rewrite-stopped/ Share on other sites More sharing options...
dalecosp Posted August 6, 2014 Share Posted August 6, 2014 RewriteCond %{HTTPS} !=on ? Quote Link to comment https://forums.phpfreaks.com/topic/290307-ssl-enabled-mod_rewrite-stopped/#findComment-1487022 Share on other sites More sharing options...
Solution inversesoft123 Posted August 7, 2014 Author Solution Share Posted August 7, 2014 Fixed I just enabled mod_rewrite for SSL by editing vhost.conf or (ssl.conf may be in your case)<Directory /home/wwwdir/public_html/>AllowOverride All</Directory>Finally Resolved Quote Link to comment https://forums.phpfreaks.com/topic/290307-ssl-enabled-mod_rewrite-stopped/#findComment-1487080 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.