htaccess redirect question

Discussion in 'Search Engine Optimization' started by zeekstern, Sep 14, 2008.

  1. #1
    My goal is to use the htaccess file as one central place to mask my affiliate links.

    If I put the following in the .htaccess file:

    Redirect /thispage http://www.thatsite.com/abcdefg

    And I reference http://mysite.com/thispage (and "thispage does Not exist) on my web page:

    1. Will the system automatically assume there is a /thispage.html and perform the redirect?

    2. Will the system recognize the /thispage as a Directory and no redirect will take place.

    I am familiar with Unix/Linux and think that #2 is probably the answer. However, the examples I've found in Google include the .html extension but do not say that the page must exist. And if the page needs to exist, what goes in it? :confused:

    I saw how to create a redirect .php page but you don't need the htaccess file for it.

    Zeek
     
    zeekstern, Sep 14, 2008 IP
  2. astup1didiot

    astup1didiot Notable Member

    Messages:
    5,926
    Likes Received:
    270
    Best Answers:
    0
    Trophy Points:
    280
    #2
    I personally would use a PHP redirectional script instead of using a 301 redirect; your better off SEO wise and it's easier to maintain through a backend, hotscripts.com should have something like that useful to you.
     
    astup1didiot, Sep 15, 2008 IP