FRIHOST FORUMS SEARCH FAQ TOS BLOGS COMPETITIONS
You are invited to Log in or Register a free Frihost Account!


.htaccess Problem - PLEASE help - Reward Offered





jylan
Ok guys, I've run into this problem and I can't figure it out, using Rewrites with .htaccess is so complicated!

I have a blog at http://briterwebdesign.com/blog/, and I want to anything from /blog downwards to a new site - yeppooninfo.com.

For example, if a user entered briterwebdesign.com/blog/archives/humpy-island, I want that to redirect to yeppooninfo.com/blog/archives/humpy-island. If someone types in briterwebdesign.com/blog/tag/yeppoon/page/10, I want that to redirect to yeppooninfo.com/blog/tag/yeppoon/page/10.

I need someone to help me make the necessary Rewrite rules so that this will work. As an incentive, I'll give 50FRIH to the first person who provides a correct solution. Thanks!
kv
RewriteRule ^/blog(.*) http://briterwebdesign.com/blog$1
Jean-Luc
Hi,

In .htaccess of briterwebdesign.com, try this :
Code:
RedirectPermanent /blog/ http://www.yeppooninfo.com/blog/

(up to you, with or without www)

Jean-Luc
jylan
Hi guys, thanks for your answers. kv, your solution didn't work for me, I kept getting a 403 (pretty sure) at the briterwebdesign.com domain so that didn't work, even though I changed the second domain to yeppooninfo.com.

Jean-Luc, your's did work, thanks! If I wanted that to be a 301 redirect do I just use
Code:
Redirect 301 /blog/ http://www.yeppooninfo.com/blog/
?

Thanks and I'll pay you as soon as you've replied.
Jean-Luc
RedirectPermanent is already a 301. There is no difference between
Code:
RedirectPermanent /blog/ http://www.yeppooninfo.com/blog/
and
Code:
Redirect 301 /blog/ http://www.yeppooninfo.com/blog/

You can check it with the tool in my signature.

And thanks for the FRIH$ !

Jean-Luc
jylan
Thanks Jean-Luc, I'll be using this tecnique in a few days once I've copied everything over. I've donated your frih.
Related topics
Which is the source of the problem???PLEASE HELP ME!!!
simple php problem, please help...
A problem.. please help
Anyone please help me!
Help! This small script has logical problems. Please help
64 = 65? Frih$ reward offered! Please help.
an annoying problem - PLEASE help
Help please,"Forbidden You don't have permission to acc
Please help. I have a problem with installing FreeBSD
Problem with MySQL Server Please Help!!
Someone please help
Please help regarding editing of index file
encrypt and decrypt PROBLEM plss HELP!
Joomla Installation Problem --> Session Save Path
Reply to topic    Frihost Forum Index -> Scripting -> Php and MySQL

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2011 Frihost, forums powered by phpBB.