Results 1 to 7 of 7
  1. #1
    Full Member
    Join Date
    January 18th, 2005
    Posts
    315
    Please...what is the .htaccess.html file and where do I find it? Do I need to create it or is it already on the server, like a standard file? We use Frontpage and when we tried to create the file, it wouldn't let us, making me think it's a standard file on the server. Any help is appreciated [img]/infopop/emoticons/icon_smile.gif[/img]

  2. #2
    ABW Ambassador
    Join Date
    January 18th, 2005
    Posts
    758
    hershey, you will never see it with frontpage. it is in your root directory (the folder where your index page is. if you edit this file be careful not to change anything , only add what you need to! this is the file that keeps your site secure on some servers.

    to edit you need to use an ftp program like wsftp. on the right side there is a blank space open. if you type in this space -la and then push refresh you will be able to see the file. then you can right click on it and choose edit.

    hope that helps

  3. #3

  4. #4
    Newbie
    Join Date
    January 18th, 2005
    Posts
    268
    .htaccess is great<IMG src=http://www.abestweb.com/ubb/icons/icon14.gif>

    first of all its just .htaccess not .htaccess.html

    they are mostly used for redirecting to a custom 404 error page but you can do some really smart redirection

    you can create one with any text editor, its really easy

    open notepad or whatever text editor you use then type or paste the following line

    ErrorDocument 404 ]http://www.yoursite.com/index.html

    now save the file as ".htaccess" (include the quotes or it will not work)
    then upload to your site and type in a url like http://www.yoursite.com/asdfg.html

    and that line will redirect to your homepage if you dont have a asdfg.html

    there are some other really clever redirects you can do too

    heres a couple of useful urls
    "http://www.vnwr.com/resources/tutorials/htaccess.html"
    "http://www.vnwr.com/resources/tutorials/htacces2.html"

    once you discover htaccess youll wonder how you did without it

  5. #5
    ABW Ambassador
    Join Date
    January 18th, 2005
    Location
    Canada
    Posts
    1,650
    This article might also be of some use:
    http://buckworks.com/articles/error-redirection.html

  6. #6
    ABW Ambassador webmarm's Avatar
    Join Date
    January 18th, 2005
    Posts
    1,713
    I also use a local .htaccess file in directories with images which were prone to newbies and not-so-newbies-with-not-so-good-intentions direct linking. Got the code from Dave on AHFB :

    AuthUserFile /dev/null
    AuthGroupFile /dev/null
    RewriteEngine On
    RewriteCond %{HTTP_REFERER} !^http://www.domain.com/
    RewriteCond %{HTTP_REFERER} !^http://domain.com/
    RewriteCond %{HTTP_REFERER} !^http://www.otherdomain.com/
    RewriteRule /* http://www.domain.com/index.html [R,L]
    ...where domain.com is your domain name, and www.otherdomain.com is another
    site you wish to except from the linking restriction. (You may duplicate
    this line to add other sites.)


    Some lovely idea-ot had direct linked to all my free images and offered them as their own. I don't really care about someone claiming them for their own (though prefer not, and prefer a link back), but hot linking was tooooo much. :eek:

  7. #7
    Full Member
    Join Date
    January 18th, 2005
    Posts
    315
    Thank you all so much! I know more about the .htaccess file now than I dreamed possible.... [img]/infopop/emoticons/icon_smile.gif[/img]

  8. Newsletter Signup

+ Reply to Thread

Similar Threads

  1. Htaccess File Problem
    By silver93350 in forum Midnight Cafe'
    Replies: 44
    Last Post: June 24th, 2011, 03:25 PM
  2. htaccess focing download of file NOT WORKING
    By Affiliate Ian in forum Programming / Datafeeds / Tools
    Replies: 6
    Last Post: February 18th, 2005, 03:48 PM
  3. Problem with big .htaccess file?
    By Affiliate Ian in forum Midnight Cafe'
    Replies: 2
    Last Post: August 20th, 2004, 02:40 PM
  4. HTML in datafeed stays HTML in file?
    By Nintendo in forum WebMerge (Fourthworld.com)
    Replies: 1
    Last Post: August 17th, 2004, 10:05 PM

Posting Permissions

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