Lifelesspeople.com

 Forum FAQsForum FAQs  Knowledge BaseKnowledge Base  RulesRules   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   HostingHosting   RegisterRegister 
 DonateDonate   WikiWiki   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

redirect one site to another

 
Lifelesspeople.com Forum Index -> Support Questions
Post new topic   Reply to topic View previous topic :: View next topic  
Author Message
Desbrina
Jadeite


Joined: 11 Jun 2005
Posts: 3008
Location: Earth

PostPosted: Wed Jul 18, 2007 5:02 pm    Post subject: redirect one site to another Reply with quote

I have two sites, my original one
http://darknesswithin.com.ru/
and my addon domain
http://midnighttempest.com/

As the original one isn't in use at the moment, will be in the future, i tried to get it to redirect to the second one via the cpanel

The problem i have is that when i set the redirection up, i get a forbidden error on the site, and all other sites on my hosting

I've created a file that redirects, but am wondering why i'm getting the problem i the first place
_________________
Midnight Tempest - A Sailor Moon TCG
Balanced Force - A Star Wars TCG
Caretaker - A Star Trek Voyager TCG
My Stories
Back to top
 
pterodactyl
Lifeless Fossil


Joined: 23 Jun 2005
Posts: 1472
Location: Ukraine

PostPosted: Wed Jul 18, 2007 9:43 pm    Post subject: Reply with quote

What redirection directives appear in your .htaccess file when you set redirection up via CPanel?
_________________
...while pterodactyls flow...
[img:c5ad10a0ae]http://pterodactyl.l2p.net/graphics/signature/groups.jpg[/img:c5ad10a0ae]
Back to top
 
Desbrina
Jadeite


Joined: 11 Jun 2005
Posts: 3008
Location: Earth

PostPosted: Thu Jul 19, 2007 1:45 am    Post subject: Reply with quote

Quote:
Options +FollowSymLinks
AddType application rar

RedirectMatch permanent ^/mt$ http://www.midnighttempest.com

AddHandler application/x-httpd-php5 .php

RedirectMatch temp ^/$ http://midnighttempest.com


thats whats appearing
_________________
Midnight Tempest - A Sailor Moon TCG
Balanced Force - A Star Wars TCG
Caretaker - A Star Trek Voyager TCG
My Stories
Back to top
 
pterodactyl
Lifeless Fossil


Joined: 23 Jun 2005
Posts: 1472
Location: Ukraine

PostPosted: Thu Jul 19, 2007 2:12 am    Post subject: Reply with quote

I don't sure about regular expressions used in the redirect directives. Probably they have to contain no $ sign or match a sequence of any symbols (.*) in the end of the string. Otherwise only http://darknesswithin.com/ru/ and http://darknesswithin.com/ru/mt URLs will be matched.

It doesn't explain, however, why the forbidden error appears.
_________________
...while pterodactyls flow...
[img:c5ad10a0ae]http://pterodactyl.l2p.net/graphics/signature/groups.jpg[/img:c5ad10a0ae]
Back to top
 
Jacky
3.14159265358979323846264


Joined: 01 Jan 2005
Posts: 3856


PostPosted: Thu Jul 19, 2007 6:15 am    Post subject: Reply with quote

Actually what I am thinking of is:

If you decide not to use darknesswithin.com.ru, and since midnighttempest.com is an addon domain, just set the darknesswithin.com.ru as an addon domain, pointing to the same directory.

And if you decide not to use midnighttempest.com and darknesswithin.com.ru is the primary domain, park midnighttempest.com.

And if you get a Forbidden error, it's your .htaccess file. It could be mod_security.

I have had two cases of Forbidden error. All got to do with mod_security.

BUT, if anything happens to your site while mod_security is turned off, you have to be responsible to it. Trel warned me before about this.
_________________
ClickFanatic wrote:
Your nonsense make my forum visits rather brief, Jacky. It's like:
"Hey look, a reply notification!"
*click* *click*
*reading garbage*
"Oh it was Jacky again..."
*close*
Back to top
 
Desbrina
Jadeite


Joined: 11 Jun 2005
Posts: 3008
Location: Earth

PostPosted: Thu Jul 19, 2007 9:38 am    Post subject: Reply with quote

midnight tempest is always going to get used

The reason I'm not currently using darkness within is i'm planning on changing what i have on it, it will be used in the near future

Quote:
I don't sure about regular expressions used in the redirect directives. Probably they have to contain no $ sign or match a sequence of any symbols (.*) in the end of the string. Otherwise only http://darknesswithin.com/ru/ and http://darknesswithin.com/ru/mt URLs will be matched.

It doesn't explain, however, why the forbidden error appears.


the darknesswithin.com.ru/mt to midnighttempest.com works fine though, just not the darknesswithin.com.ru to midnighttempest.com
_________________
Midnight Tempest - A Sailor Moon TCG
Balanced Force - A Star Wars TCG
Caretaker - A Star Trek Voyager TCG
My Stories
Back to top
 
Display posts from previous:   
Post new topic   Reply to topic    Lifelesspeople.com Forum Index -> Support Questions All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Home | Hosting | News | Forum | Links | System Status | About | Archive | Donate ]
Powered by phpBB © 2001, 2002 phpBB Group
All trademarks and copyrights on this page are owned by their respective owners. Posts and comments are owned by the poster. Everything else © 2001 - 2007 Lifelesspeople.com