.htaccess problem

Discussion in 'Apache' started by Noddegamra, May 20, 2008.

  1. #1
    I'm currently working on a domain, but having problems with the .htaccess file. I tested it on another domain and it worked fine. Upon using it on the "live" server though, I am experiencing problems.

    One may be due to developing it online in a folder named "beta", but we will have to see.


    the domain (for example) is http://www.domain.com/beta/

    This is my htaccess that I put in that folder:

    Options +FollowSymLinks
    RewriteEngine on
    RewriteRule (.*)-(.*).html$ /index.php?page_name=$1&page_id=$2
    RewriteRule news/(.*).html$ /news.php?news_id=$1
    RewriteRule jobs/(.*).html$ /vacancies.php?job_id=$1
    
    <Files ".ht*">
    deny from all
    </Files>
    Code (markup):


    ive also tried (for example):
    Options +FollowSymLinks
    RewriteEngine on
    RewriteRule (.*)-(.*).html$ /beta/index.php?page_name=$1&page_id=$2
    RewriteRule news/(.*).html$ /beta/news.php?news_id=$1
    RewriteRule jobs/(.*).html$ /beta/vacancies.php?job_id=$1
    
    <Files ".ht*">
    deny from all
    </Files>
    Code (markup):
    ..and other things (like putting the htcaccess file in http://www.domain.com/). Nothing seems to work. Can anyone help me fix this problem?
     
    Noddegamra, May 20, 2008 IP