How do you 301 redirect sub-pages?

PaperToy

Regular Member
Joined
Jul 2, 2013
Messages
349
Reaction score
102
You need hosting for bigdomain.com. Put this in bigdomain.com's .htaccess file:
Code:
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} !smallsite.com$ [NC]
RewriteRule ^(.*)$ http://smallsite.com/$1 [L,R=301]
 
You need hosting for bigdomain.com. Put this in bigdomain.com's .htaccess file:
Code:
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} !smallsite.com$ [NC]
RewriteRule ^(.*)$ http://smallsite.com/$1 [L,R=301]

Would that be the only code placed in the .htaccess?
 
if you use/trasnfer namesilo they offer cloaked paths redirection, that would be simplest solution
 
You need hosting for bigdomain.com. Put this in bigdomain.com's .htaccess file:
Code:
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} !smallsite.com$ [NC]
RewriteRule ^(.*)$ http://smallsite.com/$1 [L,R=301]

This doesn't solve the problem. The correct code I found is this:

Code:
[B][COLOR=#222426][FONT=Consolas]RewriteEngine on
[/FONT][/COLOR]RewriteCond %{http_host} ^www.old.com [NC,OR]
RewriteCond %{http_host} ^old.com [NC]
RewriteRule ^(.*)$ http://www.thenewdomain.org/ [R=301,NC,L][/B]
 
Last edited:
Hi, every one! i have few questions...

1st Can you help me buy fraudbuster(need reference)

2nd clocker for fb (any new tricks??)

3rd i have to promote gambling offers in Singapore any suggestions or service you offer?

Thanks
S- itelmark.com
 
Back
Top