mod rewrite htaccess

Discussion in 'Server Operation' started by tera7, Sep 11, 2007.

  1. tera7

    tera7 New Member

    Hi i just try to make my urls simpler for the search engines but i dont manage to get it work.
    i searched all the info to the internet so i have properly changed httpd.conf
    my error log for apache doesnt have something and my htaccess is like this:

    Options +FollowSymLinks
    RewriteBase /
    RewriteEngine On
    RewriteRule ^details/([0-9]+)/$ /details.php?id=$1 [PT]

    but it doesnt work although when i try to edit a redirect it works fine.
    any suggestion?
  2. falko

    falko Super Moderator ISPConfig Developer

    Please put the RewriteEngine On line before all other rewrite directives.
  3. tera7

    tera7 New Member

    No nothing i have made a lot of experiments with htaccess and httpd.conf but nothing worked i also installed a regexp rpm to my server nothing i tried to edit a htaccess with no regex stuff and dont work but redirections work i am totally confused this happens to my two linux dedicated servers and to my xp xamp pc.

    the original link is like :

    where details of course is a php script.

    i also tried 5 different mod rewrite rules generators for my htaccess.
  4. sjau

    sjau Local Meanie Moderator

    I'd try this:

    RewriteEngine On
    RewriteRule ^details/([0-9]+)$ details.php?id=$1 [PT]
    I use those two rules for myself:
    RewriteEngine On
    RewriteRule ^pId/([A-Za-z0-9]+)/id/([A-Za-z0-9]+)/production.png$ production.php?pId=$1&id=$2
    RewriteRule ^pId/([A-Za-z0-9]+)/id/([A-Za-z0-9]+)/graph.png$ graph.php?pId=$1&id=$2
  5. tera7

    tera7 New Member


    stupid mistakes to my scripts sorry.

Share This Page