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!

mod_rewrite 404

Discussion in 'General Discussion' started by ajlanghorn, Oct 22, 2011.

  1. ajlanghorn

    ajlanghorn Registered

    Joined:
    Oct 22, 2011
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    51
    Location:
    Detroit, Michigan, United States
    cPanel Access Level:
    DataCenter Provider
    Hi

    I have an account with Hostgator who provide cPanel, and am moving away to my own server running cPanel. Since I'm not a massive fan of automated backups (I'm sure they work well, but I've always preferred the old-school way), I downloaded all the files and SQL databases to my machine, then re-uploaded it all to my new server.

    On the old server - the one provided by Hostgator - mod_rewrites worked fine via a .htaccess file - I was simply stripping the file extension out. On my new server, however, trying to go to a page I know exists via the URL without the extension (eg: domain.com/xyz.html exists, and I visit domain.com/xyz), I get a 404 from cPanel/WHM.

    I'm perplexed. Any advice/assistance/suggestions would be most welcome

    Thanks

    Andrew
     
  2. ajlanghorn

    ajlanghorn Registered

    Joined:
    Oct 22, 2011
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    51
    Location:
    Detroit, Michigan, United States
    cPanel Access Level:
    DataCenter Provider
    As an addendum, I've had a look in EasyApache, and I don't seem to be able to add anything to do with mod_rewrites or rewrites in. Nor does mod_rewrite.so appear in the modules folder of the httpd installation either... :(
     
  3. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,720
    Likes Received:
    1,883
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello :)

    Mod_Rewrite should be compiled with Apache by default with cPanel. You can use the following command to verify this:

    Code:
    # httpd -l|grep rewrite
    A typical output would be:

    Code:
    # httpd -l|grep rewrite
      mod_rewrite.c
    Thank you.
     
    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