Jump to content

SSL enabled mod_rewrite Stopped


inversesoft123

Recommended Posts

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

Link to comment
https://forums.phpfreaks.com/topic/290307-ssl-enabled-mod_rewrite-stopped/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.