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.

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:
    1
    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:
    1
    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 Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,811
    Likes Received:
    671
    Trophy Points:
    113
    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.
     
Loading...

Share This Page