The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

help: mod_rewrite

Discussion in 'General Discussion' started by marquis_ce, Jun 18, 2008.

  1. marquis_ce

    marquis_ce Member

    Joined:
    Apr 11, 2008
    Messages:
    12
    Likes Received:
    0
    Trophy Points:
    1
    My Apache Version is Apache/2.0.63 (Unix) . And i think there is no need to enable mod_rewrite because it is default in this version.
    And also in Loaded Modules it says "mod_rewrite" in phpinfo.

    Now I want to change my url such as

    The original URL:
    http://www.mydomain.com/out.php?id=53
    The rewritten URL:
    http://www.mydomain.com/53.html


    So the rule is
    RewriteEngine On
    RewriteRule ^([^/]*)\.html$ /out.php?id=$1 [L]

    Problem is: I am writing this rule into the .htaccess file and uploading it but it doenst work?

    What i miss?
     
  2. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,446
    Likes Received:
    195
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
Loading...

Share This Page