Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    Jan 2003
    Posts
    18

    htaccess problem (textpattern install)

    Hi,

    I was trying to install Textpattern onto my site, so I uploaded all the files as instructed, but one of those was a .htaccess file. Now when I goto the site all I get is a 403 Forbidden Error Page. Obviously (In my mind at least) the .htaccess is causing the problems, but I have no idea why.

    Code:
    # DirectoryIndex index.php index.html
    # Options +FollowSymLinks
    # RewriteBase /relative/web/path/
    
    
    RewriteEngine On
    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^(.+) - [PT,L]
    
    RewriteRule ^(.*) index.php
    Thanks in advance for any help
    http://www.carldean.com

  2. #2
    Registered User
    Join Date
    Jan 2003
    Posts
    18
    Quote Originally Posted by deano
    Hi,

    I was trying to install Textpattern onto my site, so I uploaded all the files as instructed, but one of those was a .htaccess file. Now when I goto the site all I get is a 403 Forbidden Error Page. Obviously (In my mind at least) the .htaccess is causing the problems, but I have no idea why.

    Code:
    # DirectoryIndex index.php index.html
    # Options +FollowSymLinks
    # RewriteBase /relative/web/path/
    
    
    RewriteEngine On
    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^(.+) - [PT,L]
    
    RewriteRule ^(.*) index.php
    Thanks in advance for any help

    Ok, I have messed around a bit and I now have the following htaccess

    Code:
    DirectoryIndex index.php index.html
    Options +FollowSymLinks
    RewriteBase /home/virtual/site155/fst/var/www/html/textpattern
    
    <IfModule mod_rewrite.c>
     RewriteEngine On
     RewriteCond %{REQUEST_FILENAME} -f [OR]
     RewriteCond %{REQUEST_FILENAME} -d
     RewriteRule ^(.+) - [PT,L]
     
     RewriteRule ^(.*) index.php
    </IfModule>
    Instead of a 403, I now get a 500

    Any ideas anyone ?
    http://www.carldean.com

  3. #3
    Registered User
    Join Date
    Jan 2003
    Posts
    18
    Fixed now

    In case anyone has this problem in future, this is the htaccess I used.

    Code:
    DirectoryIndex index.php index.html
    Options +FollowSymLinks
    RewriteBase /home/virtual/site155/fst/var/www/html/textpattern
    
    <IfModule mod_rewrite.c>
     RewriteEngine On
     RewriteCond %{REQUEST_FILENAME} -f [OR]
     RewriteCond %{REQUEST_FILENAME} -d
     RewriteRule ^(.+) - [PT,L]
     
     RewriteRule ^(.*) /index.php
    </IfModule>
    All it needed was a / before index.php on the next to last line.
    http://www.carldean.com

  4. #4
    Senior Member
    Join Date
    Aug 2003
    Location
    Westgate-on-Sea, Kent, ENGLAND
    Posts
    2,228
    For your rewritebase line you shouldn't really need that path just a relative path of "/textpattern" should be enough as paths are relative to the document root (/var/www/html) of your site. From the path name you typed i suspect your site it not running at high security mode. When the time comes that UH convert all sites to high security that .htaccess file would break unless you use the relative path. Also i believe you would need to change +FollowSymLinks for +SymlinksIfOwnerMatch

    Your DirectoryIndex line can safely be removed without any problem as the server wide settings already set that (unless you have overridden it in the .htaccess file of the directory above.

    Andy

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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