Welcome,
Guest
.
Please
login
or
register
.
Did you miss your
activation email
?
News:
Did you know that
Elxis 5.x
uses HTML5, CSS3 and pure javascript without external libraries such as jQuery?
Home
Help
Login
Register
Elxis CMS Forum
»
Support
»
Technical support
»
Redirection from subdomain to domain
« previous
next »
Print
Pages: [
1
]
Author
Topic: Redirection from subdomain to domain (Read 6657 times)
jimmyz
Full Member
Posts: 202
Redirection from subdomain to domain
«
on:
March 02, 2011, 02:05:08 »
Hi guys, hope you 're alright.
I need some help here. I have just moved my site from
mysite.adomain.com
to
mysite.com
. But, other friendly sites have made in the past links to my [old]site, in form of
mysite.adomain.com/something/somewhere
. Now, when a visitor clicks that link, gets redirected to my / of
mysite.com
. To do this, I have used
<meta http-equiv="REFRESH" content="0;url=http://mysite.com">
in my<HEAD> tags, of a page named index.html in the place where my [old]site was. In addition, I have in the same [old]location a .htaccess, which includes
ErrorDocument 404 /index.html
.
What should I instruct
mysite.adomain.com
, to redirect people to the same location as before, but in my new host? What I mean is, clicking on
mysite.adomain.com/something/somewhere
, redirect to
mysite.com/something/somewhere
.
Any help is appreciated.
Logged
Dirty Deeds Done Dirt Cheap
Ivan Trebješanin
Elxis Team
Hero Member
Posts: 1663
Re: Redirection from subdomain to domain
«
Reply #1 on:
March 02, 2011, 09:31:46 »
You must create simple 301 redirection.
Please, check here:
http://www.somacon.com/p145.php
Logged
I've got a snap in my finger...
Got rhythm in my walk...
jimmyz
Full Member
Posts: 202
Re: Redirection from subdomain to domain
«
Reply #2 on:
March 03, 2011, 17:18:52 »
Thank you for your direct response, Ivan.
It seems that all I needed was:
Code:
[Select]
Options +FollowSymLinks
RewriteEngine on
RewriteRule (.*) http://mysite.com/$1 [R=301,L]
in my .htaccess
My Best wishes.
«
Last Edit: March 03, 2011, 17:27:02 by jimmyz
»
Logged
Dirty Deeds Done Dirt Cheap
jimmyz
Full Member
Posts: 202
Re: Redirection from subdomain to domain
«
Reply #3 on:
March 03, 2011, 17:26:23 »
A nice tool to view HTTP Request and Response Headers, is
this
and some more info for anyone interested may be
here
.
Logged
Dirty Deeds Done Dirt Cheap
Print
Pages: [
1
]
« previous
next »
Elxis CMS Forum
»
Support
»
Technical support
»
Redirection from subdomain to domain