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!

Trying to use mod_rewrite on cpanel for php get is giving me a internal server error.

Discussion in 'General Discussion' started by housefire, Mar 8, 2009.

  1. housefire

    housefire Member

    Joined:
    Jun 24, 2006
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    151
    My .httacess file looks like this:



    RewriteEngine on
    RewriteLog /home/myuser/reDirectLogs/log.txt
    RewriteLogLevel 1


    RewriteCond %{QUERY_STRING} id=([^&;]*)
    RewriteRule ^/$ http://%{SERVER_NAME}/stores/%1/? [R]
    RewriteRule ^/([^/]*)/?$ /index.php?id=$1 [L]




    Anyone got ideas why its not working?
     
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