Jump to content

SSL enabled mod_rewrite Stopped


inversesoft123
Go to solution Solved by 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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.