LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 10-02-2012, 04:13 AM   #1
web_questions
LQ Newbie
 
Registered: Oct 2012
Posts: 3

Rep: Reputation: Disabled
RewriteRule probem


Hello,

Here you can see my .htaccess:
RewriteEngine On
Options -Indexes
Options FollowSymLinks
RewriteCond %{HTTP_HOST} ^www\.(.+)$ [NC]
RewriteRule ^(.*)$ http://%1/$1 [R=301,L]

RewriteBase /
RewriteRule ^client_area$ clientarea.php

The problem is that clientarea.php loads on https, not on http. Whenever I enter from http://mywebsite.com/index.php to https://mywebsite.com/client_area it redicters to https://mywebsite.com/clientarea.php.

Whenever I enter from https://mywebsite.com/clientarea.php to https://mywebsite.com/client_area it stays as this.

So the problem is that when I enter from http to https with my RewriteRule it won't rewrite the URL. I need to enter from http to http or from https to https for rewrite to work.

Anyone could help me with this, so rewrite works from https to http and from http to https?
 
Old 10-02-2012, 02:23 PM   #2
web_questions
LQ Newbie
 
Registered: Oct 2012
Posts: 3

Original Poster
Rep: Reputation: Disabled
Anyone? Please it's urgent, I know you can help me.
 
Old 10-04-2012, 01:49 PM   #3
web_questions
LQ Newbie
 
Registered: Oct 2012
Posts: 3

Original Poster
Rep: Reputation: Disabled
Please anyone will help me with this?
 
  


Reply



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
Apache RewriteRule help danster3k Linux - Server 3 10-06-2010 01:35 AM
Question about RewriteRule? your_shadow03 Linux - Newbie 12 12-27-2009 01:17 AM
Help with simple Apache RewriteRule please ericcarlson Linux - Server 2 05-22-2009 08:19 AM
Apache RewriteRule does not do what I want? Ujjain Linux - Server 0 03-26-2009 07:46 AM
Apache rewriterule mesh2005 Linux - Server 1 08-03-2007 02:23 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 05:12 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
Open Source Consulting | Domain Registration