Domain Forum from Acorn Domains Amazon Affiliate Script

Today's Drop Dates are: 23-05-2014 or 30-05-2014   All times are GMT +1. The time now is 01:12:43 PM.
Domain Sales Prices Services Offered Domain Software Domain Drop Dates Domain Registration Website Hosting Deleted Domains List
Go Back   UK Domain Forum Acorn Domains > Website Design and Promotion > Website Design

Website Design Discuss web design

Closed Thread
 
LinkBack Thread Tools Display Modes
Old 15-05-2010, 03:54:51 PM     #1 (permalink)
Busy At The Moment
 
Join Date: Jul 2004
Posts: 4,844
SecNam has a reputation beyond reputeSecNam has a reputation beyond reputeSecNam has a reputation beyond reputeSecNam has a reputation beyond reputeSecNam has a reputation beyond reputeSecNam has a reputation beyond reputeSecNam has a reputation beyond reputeSecNam has a reputation beyond reputeSecNam has a reputation beyond reputeSecNam has a reputation beyond reputeSecNam has a reputation beyond repute
Classified Rating: 100% (1)

url redirecting using htaccess

i am looking for a way to redirect urls when a user visits the page using .htaccess

for example

domain1.co.uk
domain2.co.uk
domain3.co.uk

are all parked on domain.co.uk

when a user goes to domain1.co.uk i want to divert them to domain.co.uk/domain1

i used to have this but can not find it so any help much appreciated.
SecNam is offline  
Old 15-05-2010, 05:11:34 PM     #2 (permalink)

 
Join Date: Apr 2008
Posts: 742
retired_member21 has a reputation beyond reputeretired_member21 has a reputation beyond reputeretired_member21 has a reputation beyond reputeretired_member21 has a reputation beyond reputeretired_member21 has a reputation beyond reputeretired_member21 has a reputation beyond reputeretired_member21 has a reputation beyond reputeretired_member21 has a reputation beyond reputeretired_member21 has a reputation beyond reputeretired_member21 has a reputation beyond reputeretired_member21 has a reputation beyond repute

..........

Last edited by retired_member21; 15-05-2010 at 05:14:58 PM. Reason: sorry misread original post
retired_member21 is offline  
Old 15-05-2010, 05:22:01 PM     #3 (permalink)

 
Join Date: Oct 2007
Posts: 811
atlas has a reputation beyond reputeatlas has a reputation beyond reputeatlas has a reputation beyond reputeatlas has a reputation beyond reputeatlas has a reputation beyond reputeatlas has a reputation beyond reputeatlas has a reputation beyond reputeatlas has a reputation beyond reputeatlas has a reputation beyond reputeatlas has a reputation beyond reputeatlas has a reputation beyond repute

I think that this should work:

RedirectMatch 301 (.*) http://www.domain.co.uk/domain1
atlas is offline  
Old 15-05-2010, 06:27:15 PM     #4 (permalink)
Busy At The Moment
 
Join Date: Jul 2004
Posts: 4,844
SecNam has a reputation beyond reputeSecNam has a reputation beyond reputeSecNam has a reputation beyond reputeSecNam has a reputation beyond reputeSecNam has a reputation beyond reputeSecNam has a reputation beyond reputeSecNam has a reputation beyond reputeSecNam has a reputation beyond reputeSecNam has a reputation beyond reputeSecNam has a reputation beyond reputeSecNam has a reputation beyond repute
Classified Rating: 100% (1)

sussed it

Options +FollowSymLinks
RewriteEngine on
RewriteCond %{HTTP_HOST} ^(www\.)?domain1.co.uk [NC]
RewriteCond %{HTTP_HOST} !^$
RewriteRule ^(.*) http://www.domain.co.uk/domain1/$1 [L,R=301]
SecNam is offline  
Old 16-05-2010, 08:12:56 AM     #5 (permalink)

 
bensd's Avatar
 
Join Date: Jan 2007
Location: Wiltshire, UK
Posts: 4,652
bensd has a reputation beyond reputebensd has a reputation beyond reputebensd has a reputation beyond reputebensd has a reputation beyond reputebensd has a reputation beyond reputebensd has a reputation beyond reputebensd has a reputation beyond reputebensd has a reputation beyond reputebensd has a reputation beyond reputebensd has a reputation beyond reputebensd has a reputation beyond repute

Domain Trader Rating:
(100% / 100)
Quote:
Originally Posted by paullas View Post
sussed it

Options +FollowSymLinks
RewriteEngine on
RewriteCond %{HTTP_HOST} ^(www\.)?domain1.co.uk [NC]
RewriteCond %{HTTP_HOST} !^$
RewriteRule ^(.*) http://www.domain.co.uk/domain1/$1 [L,R=301]
Does that rule now work for all domains you forward or just domain1.co.uk?
bensd is online now  
Old 16-05-2010, 06:18:44 PM     #6 (permalink)
Busy At The Moment
 
Join Date: Jul 2004
Posts: 4,844
SecNam has a reputation beyond reputeSecNam has a reputation beyond reputeSecNam has a reputation beyond reputeSecNam has a reputation beyond reputeSecNam has a reputation beyond reputeSecNam has a reputation beyond reputeSecNam has a reputation beyond reputeSecNam has a reputation beyond reputeSecNam has a reputation beyond reputeSecNam has a reputation beyond reputeSecNam has a reputation beyond repute
Classified Rating: 100% (1)

just domains1
SecNam is offline  
Old 03-09-2012, 12:42:10 PM     #7 (permalink)
Busy At The Moment
 
Join Date: Jul 2004
Posts: 4,844
SecNam has a reputation beyond reputeSecNam has a reputation beyond reputeSecNam has a reputation beyond reputeSecNam has a reputation beyond reputeSecNam has a reputation beyond reputeSecNam has a reputation beyond reputeSecNam has a reputation beyond reputeSecNam has a reputation beyond reputeSecNam has a reputation beyond reputeSecNam has a reputation beyond reputeSecNam has a reputation beyond repute
Classified Rating: 100% (1)

just thought i would open an old thread rather create a new one.

Is it possible to create the above using wildcard for a domain/url.

so instead of using the following per domain:

Options +FollowSymLinks
RewriteEngine on
RewriteCond %{HTTP_HOST} ^(www\.)?domain1.co.uk [NC]
RewriteCond %{HTTP_HOST} !^$
RewriteRule ^(.*) http://www.domain.co.uk/domain1/$1 [L,R=301]

have it so it is seens for example tfts.co.uk it will divert to /tfts/
or domain1.co.uk goes to /domain1/
SecNam is offline  
Closed Thread



Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Similar Threads
Thread Thread Starter Domain Name Community Replies Last Post
(help) htaccess WWW purg General Board 2 19-01-2009 11:05:25 PM
Google Offers Money-Back Guarantee* on 301 Domain Redirecting - Marketing Pilgrim RSS Domain Name News 0 17-04-2008 03:59:02 PM
Redirecting An Affiliate Link? MKMK Affiliate Marketing 2 03-06-2007 09:00:51 PM
Redirecting whole site with 301 to new domain murph Website Design 4 23-12-2005 12:00:02 PM

Web Hosting


All times are GMT +1. The time now is 01:12:43 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.6.1
All content on Acorn Domains is member generated and is not moderated before posting. All content is viewed and used by you at your own risk and AD does not warrant the accuracy or reliability of any of the information. The views expressed are those of the individual contributors and not necessarily those of AD. Please contact us to report any issues or send a PM to "Admin".