ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Error when submitting content, takes me to 501.shtml page

March 19, 2012 12:19pm

Subscribe [1]
  • #1 / Mar 19, 2012 12:19pm

    Hello

    I’m currently running v2.2.2 - Build: date 20110801 and everything has been going smoothly. However, I published a couple of entries to one of my channels and when trying to publish a third entry I was redirected to a 501.shtml page which, on the site, takes you to our 404 page (I assume because 501.shtml isn’t a proper URL).

    This was yesterday, I tried submitting content again today and lo and behold it worked. However, after publishing a few entries and then trying once again, I am taken to http://mysite.com/501.shtml and the content is not submitted.

    This is very frustrating as I have no idea where the problem lies. If anyone could shed any light on this I would greatly appreciate it!

    Cheers
    Rury

  • #2 / Mar 19, 2012 7:38pm

    Sean C. Smith

    3818 posts

    Hi Rury,

    That is definitely unusual. Could you post up the contents of your .htaccess file here. you can put it between [ code][ /code] tags or use a pastie. Also could you check your server error logs for any relevant information after one of these errors occurs?

    Sean

  • #3 / Mar 19, 2012 8:06pm

    Nothing in the error logs :( However here is my htaccess file, I’ve removed a huge list of redirects:

    # ^ = match start of URL
    # $ = match end of URL
    # [R] = Do a redirect with new URL (rather than hiding the new URL)
    
    RewriteEngine On
    RewriteRule ^index.html$ <a href="http://sitename.com">http://sitename.com</a> [R=301,L]
    RewriteRule ^index.htm$ <a href="http://sitename.com">http://sitename.com</a> [R=301,L]
    RewriteRule ^panic_story.htm$ <a href="http://sitename.com/how-i-beat-panic-attacks">http://sitename.com/how-i-beat-panic-attacks</a> [R=301,L]
    # removed massive list of redirects and changed URL of site.
    
    # Rewrite homepage urls that have the google query string
    RewriteCond %{QUERY_STRING} ^utm_
    RewriteCond %{REQUEST_URI} ^/$ [NC]
    RewriteRule (.*) /index.php?/site/index/&%{QUERY_STRING} [L]
    
    
    RewriteEngine On
    RewriteCond %{HTTP_HOST} !^www\.
    RewriteRule ^(.*)$ <a href="http://www.%{http_host}/$1">http://www.%{http_host}/$1</a> [R=301,L]
    
    # this adds trailing slash
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_URI} !(.*)/$
    RewriteRule ^(.*)$ $1/ [R=301,L]
    
    # BEGIN Expression Engine Rewrite
    
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond $1 !\.(gif|jpe?g|png)$ [NC]
    RewriteRule ^(.*)$ /index.php?$1 [L]
    </IfModule>
    
    ErrorDocument 404 /404.html
  • #4 / Mar 21, 2012 6:04pm

    Sean C. Smith

    3818 posts

    Hi Rury,

    I don’t see anything unusual in that .htaccess file, but I would like you to temporarily remove it and see if the issue persists. If that does not resolve it, I’d like you to upgrade your site to 2.4.0 so that we can be on the same page for troubleshooting. When upgrading don’t forget to update any add-ons you are using to the latest version as well.

    Sean

  • #5 / Mar 21, 2012 6:39pm

    Hi Sean

    Thanks for your response. After disabling .htaccess and trying to submit an entry I got the following error, if this is any help:

    501 Method Not Implemented
    
    GET to /admin.php not supported.
    Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

    Cheers
    Rury

  • #6 / Mar 23, 2012 7:08pm

    Sean C. Smith

    3818 posts

    Hi Rury,

    There is definitely something unusual going on here. I’d like you to contact your host and ask them about this error and if there is anything that they can see on their end causing this issue - have they recently upgraded apache, php or something else on the server?

    Sean

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases