Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 5 of 5
  1. #1
    Member
    Join Date
    Mar 2009
    Posts
    9

    Default addon domain returns 200 'OK' for non existant pages instead of 404

    Is this normal behavior? Is this planned? how can it be changed?

    example :
    Normal site
    http://stacey-nemour.com/
    Non existant page
    http://stacey-nemour.com/asdfljh234589

    -P

  2. #2
    Technical Product Specialist cPanelDavidG's Avatar
    Join Date
    Nov 2006
    Location
    Houston, TX
    Posts
    11,189
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Quote Originally Posted by pramsey View Post
    Is this normal behavior? Is this planned? how can it be changed?

    example :
    Normal site
    http://stacey-nemour.com/
    Non existant page
    http://stacey-nemour.com/asdfljh234589

    -P

    http://stacey-nemour.com/asdfljh234589 appears to exist. Are you sure you don't have any redirection or mod_rewrite rules that could be causing this to happen?

  3. #3
    Member
    Join Date
    Apr 2008
    Location
    sanctum sanctorum
    Posts
    152

    Default

    There appears to be a rewrite error

    Code:
    GET http://stacey-nemour.com/asdfljh234589
    301 Moved Permanently -> Location: http://stacey-nemour.com/asdfljh234589/
    
    GET /favicon.ico
    301 Moved Permanently -> Location: http://stacey-nemour.com/favicon.ico/

  4. #4
    Member
    Join Date
    Mar 2009
    Posts
    9

    Default

    The re-write that is happening is from the cpanel/easy apache config and not .htaccess as there is no .htaccess. So how do I tell cpanel not to do this?

    -P

  5. #5
    Member
    Join Date
    Mar 2009
    Posts
    9

    Default

    dooohp....


    I created an .htaccess and the problem went away...

    -P


Similar Threads & Tags
Similar threads

  1. 404 pages under a folder
    By htsnet in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 12-12-2009, 12:51 PM
  2. 404 httpd header returns 200 ok
    By Haloweb in forum New User Questions
    Replies: 6
    Last Post: 12-09-2005, 05:23 AM
  3. Addon Domain, finding and editing 404 error page
    By Swan in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 08-03-2005, 07:26 PM
  4. 404 Pages
    By wanderingstar89 in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 06-12-2004, 10:11 AM
  5. Adding Custom Error Pages for non-existant pages
    By YukFoo in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 09-16-2002, 03:07 AM
Tags for this Thread
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube