my .htaccess http://amen.mobi/htaccess.tar.gz
download pls try it
If you are new to domains and looking to buy, sell and learn about domains then you have come to the right place. DNForum is the largest domain name community on the internet and continues to grow every day. There are over 105,000 domainers on DNForum doing everything from buying domains, selling domains, learning about domains and discussing domains. Take a minute and Register.
Register Today on DNForum IT'S FREE!I was hoping someone could help me with a simple .htaccess question.
I am trying to use a 301 redirect to move all subdomains on a domain to another domian.
Also, if there is a trailing directory, or filename I need to carry that over too.
So I need to move *.original.com\randomdirectory\randomfile.php to
*.new.com\randomdirectory\randomfile.php
I have it working by kind of hacking it out, looking at examples; but was hoping to find "the correct" way to do this, from someone who really knows it.
I have 400$ dnf for the first person who can help.
Thank you!
Trev
-------------------------------------------------------
Trev
my .htaccess http://amen.mobi/htaccess.tar.gz
download pls try it
Only 1 link allowed in signature.
I don't think that's gonna work.
It appears to be the .htaccess from lighttpd.
Did you upload the correct file?
Thanks,
Trev
-------------------------------------------------------
Trev
try...
====
Options +FollowSymlinks
RewriteEngine on
rewritecond %{http_host} ^YourOldDomain.com [nc]
rewriterule ^(.*)$ http://www.YourNewDomain.com/$1 [r=301,nc,L]
rewritecond %{http_host} ^www.YourOldDomain.com [nc]
rewriterule ^(.*)$ http://www.YourNewDomain.com/$1 [r=301,nc,L]
===========
Well, that worked for www.domain.com and just domain.com, but it doesn't set other subdomains.. and there are a lot of them, so setting them manually would kinda be a pain in the butt.
Thanks,
TGrev
-------------------------------------------------------
Trev
So you have subdomain.domain1.com and you need to forward to subdomain.domain2.com ?
If you are using the same paths and filenames, put this on your old site.
redirect 301 / http://www.your-new-domain.com/
Right, none of the replies here are correct. This is an almost impossible to get reply. I spent 5 yrs and probably hundreds of hrs time looking for the right answer and making lots of posts at many forums including webmaster boards. The knowledge is easily worth hundreds of times the insignificant 400dnf$ you are paying.
I would think the Hosting service he is at could assist him, even it cost some $$
Please vote Republican in 2012, America can not sustain another 4 years
of Liberal policies that are fiscally and socially destroying the country..
So you are saying this is not as easy a thing to do as I thought it would be.
I was under the impression it was just a matter of putting the $1 in the right place, but it sounds as if it's not that simple.
So, on that note, I will take a break from trying to do this.
Thank you to everyone who replied. I appreciate people taking the time out of their schedules to offer up some help.![]()
I tried to split up the 400$ between everyone who offered me a reply, but I did the math for 6 people instead of 5; so you all got 67$DNF.
Regards,
Trevor
Last edited by trevorhoare; 04-15-2007 at 06:55 PM.
-------------------------------------------------------
Trev
Bookmarks