logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: mod_rewrite rule
Author
Qmpeltaty



Joined: 06 Feb 2008
Posts: 182
Location: Poland

PostPosted: Tue 25 Aug '09 11:44    Post subject: mod_rewrite rule Reply with quote

Hi

I need to set up my main site rewrtite based on mod_rewrite.
It has to act with such rules :

1. If main site is requested - www.mydomain.com or mydomain.com rewrite to https://www.mydomain.com/alias1

www.mydomain.com ---> https://www.mydomain.com/alias1
mydomain.com ---> https://www.mydomain.com/alias1

2. If any other address is requested (also alias1) force it to https but keep requested alias.


www.mydomain.com/any_alias ---> https://www.mydomain.com/any_alias

mydomain.com/any_alias ---> https://www.mydomain.com/any_alias

Thanks in advance for any tips Smile
Back to top


Reply to topic   Topic: mod_rewrite rule View previous topic :: View next topic
Post new topic   Forum Index -> Apache