.htaccess RewriteRule to other than Joomla website

Joomla version 1.5 is end-of-life and are no longer supported. Please use Joomla 3.x instead.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Locked
User avatar
RobEmenecker
Joomla! Apprentice
Joomla! Apprentice
Posts: 16
Joined: Mon Sep 20, 2010 12:22 am
Location: Linthicum, Maryland 21090 USA
Contact:

.htaccess RewriteRule to other than Joomla website

Post by RobEmenecker » Sun Mar 18, 2012 1:03 pm

Hi all,

I am trying to include a few RewriteRule(s) to point specific subdomains to non-Joomla site locations on my website.

I am placing the RewriteCond and corresponding RewriteRule between the "common exploits" block of rewrites and the Joomla core SEF rewrites.

Here is a sample of one that IS NOT working:

RewriteCond %{HTTP_HOST} ^webmail.hairydogdigital.com$
RewriteRule ^(.*)$ "http://hairydogdigital\.com:2095" [R=301,L]

I've tried placing it before the common exploits block of rewrites and the results were the same. In both cases it points me back to my Joomla home page.

Any suggestions?
Rob Emenecker
Hairy Dog Digital

www.hairydogdigital.com

User avatar
RobEmenecker
Joomla! Apprentice
Joomla! Apprentice
Posts: 16
Joined: Mon Sep 20, 2010 12:22 am
Location: Linthicum, Maryland 21090 USA
Contact:

Re: .htaccess RewriteRule to other than Joomla website

Post by RobEmenecker » Sun Mar 18, 2012 4:09 pm

Through sheer force of will... trying multiple things, that is... I got this resolved.

I moved any subdomain redirects to the END of the .htaccess file AFTER the SEF rewrites and it works. However, I left any existing top-level-domain redirects before the SEF rewrites to avoid breaking what was already working.

Everything now seems to behave as intended.
Rob Emenecker
Hairy Dog Digital

www.hairydogdigital.com


Locked

Return to “Installation 1.5”