Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

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:
    51
    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:
    16,235
    Likes Received:
    384
    Trophy Points:
    583
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice