• Welcome to AcornDomains.co.uk, a friendly community for UK domain investors, developers and anyone interested in domain names.

    Whether you're looking to buy or sell domains, learn more about the UK domain market, get feedback on your names, or simply chat with other domainers, you're in the right place. AcornDomains has been bringing together people from across the UK domain industry for many years, from complete beginners to experienced investors.

    Have a look around, join the discussions and, if you haven't already, create a free account and introduce yourself.

Domain Forwarding - All

Status
Not open for further replies.
So when someone visits any of those links, you want it to forward them elsewhere?

Easy ;)

Something like this should work. Assumes you are using apache, can use .htaccess files, and mod_rewrite is installed (it is by default):

1) Create a blank text file, call it .htaccess. If you already have one, then append the code in step2 to the end of it

2) Use this code:

RewriteEngine On

RewriteCond %{HTTP_HOST} ^www.domin.co.uk$ [NC]
RewriteRule ^(.*)$ http://www.123-reg.co.uk/affiliate.cgi?id=AF106554 [L,R=301]


Jee
 
So go into cPanel, click file manager, find .htaccess, edit and place the above and every conceivable url will end up at the referral link?

Nice one, thanks for that. I was watching a porn channel the other night completely by mistake of course and the relevent domain dropped the morning after, how lucky was that? :mrgreen: Not sure if the traffic is any good yet though.

Cheers
Lee
 
that should work. If you want to also forward for subdomain.domain.co.uk it gets a bit trickier, and would involve some DNS editting :)

Jee
 
Thanks for that, that's a much better alternative than changing nameservers to sedo, now I can keep a domain on hosting and flip it anywhere.

Cheers again
Lee
 
Status
Not open for further replies.
Top Bottom