Results 1 to 2 of 2

Thread: htaccess question

  1. #1
    Dzinerbear1
    Guest

    htaccess question

    Hi all,

    I have an ht access file on the root of my domain that permanently redirects traffic from /pagename ht*tp://www.domainname.com/subdirectory/page name and that seems to be working just fine.

    Before I added that htaccess, I had another which prevented bookmarking or cutting and pasting my hidden URL, it went like so:

    RewriteEngine on
    RewriteCond %{HTTP_REFERER} !^http(s)?://([a-z0-9-]+\.)*mydomain.com/ [NC]
    RewriteCond %{HTTP_REFERER} !^http(s)?://([a-z0-9-]+\.)*myavs\.com/ [NC]
    RewriteRule /* http://%{HTTP_HOST}/ [R,L]

    When I added the htaccess at the top, the hotlinking one stopped working, when I removed the hotlinking, the permanent redirect started working.

    Initially I had the no hotlinking htaccess file in my hidden folders, which I told was wrong. So, I pasted it into the top of the permanent redirect htaccess file, but that didn't work either.

    I really need both to work and I know squat about htaccess. Any help would be appreciated.

    Thanks
    Dzinerbear


  2. #2
    chilihost1
    Guest
    You probably have conflicting arguements in your htaccess file, it would likely be best to set up a separate htaccess file in the directory that you want redirected and use redirect code, like:

    ErrorDocument 404 http://www.redirecteddomain.com

    Cheers!

    Luke


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •