1 replies
Hi,

I'm trying to set up my .htaccess file to take the displayed link and route it to the destination link as below

Displayed Link
http://www.my-website.com/click-4559...0-147658B77BD6

Destination Link
http://www.destination-website.com/c...BD6Effectively, all that changes is the first url (http://www.my-website.com) everything after that is the same.


Is this possible and could someone briefly explain how I would go about it?

*** Just to be clear, I dont want to redirect everything from my-webiste.com. Just links that start http://www.my-website.com/click-4559226-10388358
#htaccess #question
  • Profile picture of the author webpro4hire
    Hi,

    you need something along the lines of :

    Code:
    RewriteEngine On
    RewriteCond %{HTTP_HOST} ^www.my-website.com$
    RewriteCond %{REQUEST_URI} ^click-4559226-10388358
    RewriteRule ^(.*)$ http://www.destination-website.com/$1 [L,R=301]
    this is right off the top of my head, not tested. It's a good start IMHO

    Good luck,
    WebPro
    {{ DiscussionBoard.errors[3344743].message }}

Trending Topics