The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

> Redirect loop
jimlongo
post Mar 30 2007, 10:44 PM
Post #1


This is My Life
*******

Group: Members
Posts: 1,128
Joined: 24-August 06
From: t-dot
Member No.: 16



on a unix server how can I redirect the following from mydomain.com/Generals to subdomain.mydomain/Generals

What i have now in my .htaccess file is

RedirectPermanent /Generals http://subdomain.mydomain.com/Generals

also tried

RedirectMatch permanent ^/Generals$ http://subdomain.mydomain.com/Generals



Either gives me a redirect loop that won't resolve.

tia,
jim
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
 
Reply to this topicStart new topic
Replies
jimlongo
post Mar 31 2007, 01:16 PM
Post #2


This is My Life
*******

Group: Members
Posts: 1,128
Joined: 24-August 06
From: t-dot
Member No.: 16



Thanks Darin,

I love the line . . . "With mod_rewrite you either shoot yourself in the foot the first time and never use it again or love it for the rest of your life because of its power."

User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post Mar 31 2007, 02:51 PM
Post #3


🌟Computer says no🌟
********

Group: WDG Moderators
Posts: 20,730
Joined: 9-August 06
Member No.: 6



Crap. I suspected that was the answer. I realized I nowadays have the same situation as you do. The CP forces the location of subdomains' root folders inside the main domain's folder. I suck at mod_rewrite or anything else that involves regex. ninja.gif
User is online!PM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Posts in this topic


Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 19th April 2024 - 05:22 PM