Closed Thread
Results 1 to 5 of 5

Thread: .htaccess is not working.

  1. #1
    walz.raymond66 is offline x10Hosting Member walz.raymond66 is an unknown quantity at this point
    Join Date
    Mar 2011
    Posts
    2

    .htaccess is not working.

    My .htaccess file isn't working. It works fine on my old site ( http://cy.t15.org ) but on here it doesn't recognize it at all. http://cy.x10.bz

  2. #2
    misson is offline x10 Spammer misson is a jewel in the rough
    Join Date
    Mar 2008
    Location
    Libertatia
    Posts
    2,504

    Re: .htaccess is not working.

    That tells us nothing. If you called a mechanic with a car problem, would you say "My car doesn't work. It did at my old house," and leave it at that? When asking for help, describe what you expect to happen and what actually happens, including any error messages. Include a minimal test case. Read my sig for more on asking questions.
    Last edited by misson; 03-23-2011 at 01:43 PM.
    Be sure to read all pages linked in this post; they have further information that should prove useful. When asking for help, make sure you follow Eric Raymond's and Jon Skeet's guidelines for prompt, accurate responses. Please answer any questions I ask; they're not rhetorical (probably). Any posted code is intended as illustrative example, rather than a solution to your problem to be copied without alteration. Study it to learn how to write your own solution.
    Misson, not Mission.

  3. #3
    descalzo's Avatar
    descalzo is offline Grim Squeaker descalzo has a brilliant futuredescalzo has a brilliant futuredescalzo has a brilliant future
    Join Date
    Jul 2009
    Location
    Ankh-Morpork
    Posts
    7,635

    Re: .htaccess is not working.

    How is it "not working"? ie what is it supposed to do, and what is it actually doing.

    Finally, if you post the contents here, it will be much easier to help you.
    Nothing is always absolutely so.

  4. #4
    walz.raymond66 is offline x10Hosting Member walz.raymond66 is an unknown quantity at this point
    Join Date
    Mar 2011
    Posts
    2

    Re: .htaccess is not working.

    Sorry, I didn't realize that this posted to the forum, I sent a support request.
    I'm totally new here.
    Anyway, so:
    I put an .htaccess file into the root (public_html/)
    the .htaccess file contains:
    Code:
    ErrorDocument 401 /errors/401.html/
    ErrorDocument 403 /errors/403.html/
    ErrorDocument 404 /errors/404.html/
    ErrorDocument 500 /errors/500.html/
    but when i try to bring up a 404, http://cy.x10.bz/sidjhfid it can't find the ErrorDocument

    EDIT: I just realized that if i move 404.html from /errors/ to / and change the htaccess accordingly it works, but I don't know why it didn't work when it was inside /errors/.
    Last edited by walz.raymond66; 03-23-2011 at 08:29 PM.

  5. #5
    descalzo's Avatar
    descalzo is offline Grim Squeaker descalzo has a brilliant futuredescalzo has a brilliant futuredescalzo has a brilliant future
    Join Date
    Jul 2009
    Location
    Ankh-Morpork
    Posts
    7,635

    Re: .htaccess is not working.

    ErrorDocument 401 /errors/401.html/

    Shouldn't end with a /
    Nothing is always absolutely so.

Closed Thread

Similar Threads

  1. Replies: 3
    Last Post: 02-11-2010, 02:09 PM
  2. .htaccess?
    By ImJake in forum Free Hosting
    Replies: 1
    Last Post: 02-15-2009, 09:08 AM
  3. .htaccess RewriteRules not working?
    By Skizzerz in forum Free Hosting
    Replies: 0
    Last Post: 08-23-2008, 11:00 PM
  4. htaccess help
    By pirata7z in forum Free Hosting
    Replies: 2
    Last Post: 12-14-2007, 07:09 PM
  5. .htaccess
    By deaddevil in forum Scripts & 3rd Party Apps
    Replies: 3
    Last Post: 12-09-2007, 05:49 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers