Yey another htaccess problem

Discussion in 'Apache' started by magoo, Sep 18, 2007.

  1. #1
    I'd greatly appreciate some help with a very basic htaccess problem. I am trying to use htacces to display the page www.mydomain.uk.com/home.php whenever someone types in www.mydomain.uk.com
    I have been trying to run a test, as soon as I upload a htaccess file and try and run the homepage I get this error

    Forbidden
    You don't have permission to access /home.php on this server.

    Apache/1.3.34 Server at www.mydomain.uk.com Port 80

    I have stripped all the code out of the htaccess file to see which line caused the problem and it seems that as soon as I upload a page with the RewriteEngine on command this error occurs. Can anyone shed some light on this novices problem?
     
    magoo, Sep 18, 2007 IP
  2. VimF

    VimF Well-Known Member

    Messages:
    307
    Likes Received:
    27
    Best Answers:
    0
    Trophy Points:
    118
    #2
    How about post your .htaccess file?

    As for making home.php index file in every directory, did you try the directoryindex directive?
    
    DirectoryIndex home.php
    
    Code (markup):
     
    VimF, Sep 18, 2007 IP
  3. magoo

    magoo Peon

    Messages:
    474
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Well the htaccess file I was running was just a test file, but basically it went like this
    RewriteEngine on
    RewriteRule ^rewrite1.html$ rewrite2.html

    I tried removing all but the first line and the problem still arose,so basically as soon as I implement rewriteengine on then none of the pages on the server will display, the same error message appears for all of them
     
    magoo, Sep 18, 2007 IP
  4. Nintendo

    Nintendo ♬ King of da Wackos ♬

    Messages:
    12,890
    Likes Received:
    1,064
    Best Answers:
    0
    Trophy Points:
    430
    #4
    Contact your web host.
     
    Nintendo, Sep 18, 2007 IP