LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 08-07-2014, 02:24 AM   #1
inversesoft
LQ Newbie
 
Registered: Aug 2014
Posts: 2

Rep: Reputation: Disabled
When SSL enabled mod_rewrite Do not work


Hello All,

I had mod_rewrite working properly but when I enabled SSL it stopped working. Please help me its really frustrating now

Code:
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
Code:
RewriteRule (.*)playlist.xml$  https://%{SERVER_NAME}/playlist.php [L] # Playlist
No Success Also
Code:
RewriteRule (.*)playlist.xml$  https://www.domain.com/playlist.php [L] # Playlist
NO success
Please help, Thanks in Advance
 
Old 08-07-2014, 03:04 AM   #2
inversesoft
LQ Newbie
 
Registered: Aug 2014
Posts: 2

Original Poster
Rep: Reputation: Disabled
Fixed I just enabled mod_rewrite for SSL bu editing vhost.conf or (ssl.conf may be in your case)


<Directory /home/wwwdir/public_html/>
AllowOverride All
</Directory>

Finally Resolved
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] load balancing ssl enabled sites hamzar.pm Linux - Newbie 4 03-12-2013 10:24 AM
How do i find SSL enabled ports or SSL instances Doknik Linux - Software 1 12-10-2011 03:29 AM
Redirect to SSL-enabled website. haxpor Linux - Networking 1 03-20-2007 02:35 AM
SSL enabled without downloading certificate ziox Linux - Networking 1 06-27-2006 05:52 AM
When trying to compile squid with ssl enabled I get the following error. sanfran49 Linux - Software 0 03-04-2004 04:33 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 11:45 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration