Forums

403 Error, Can't find cause (7 posts)

  1. austinbedell
    Member
    Posted 1 year ago #

    Hi,

    I just ran into an error when I moved my wordpress site from a directory to the root. Transfer went fine, all other pages, blog, links work.

    One page however, named 'Templates' returns a 403 error when clicked (curiously the link does add a '/' at the end of url, none of the other pages or posts does this occur). I tried deleting it, re-adding, checking the permissions, editing the .htaccess file and upgrading wordpress and still get the 403 error.

    The only thing I can think is previous to the site move, I had a tag that I removed also called 'Templates' that might be causing it, but I can't find a reference to it in the admin or in the sql database.

    Where would an old reference to a tag exist or how can I update the site to fix the 403? I currently re-added the page as 'Template' (no s) and it works.

    Any suggestions?

  2. transom
    Member
    Posted 1 year ago #

    A link to the page in question would allow for a more definitive answer.

  3. austinbedell
    Member
    Posted 1 year ago #

    Thanks responding.

    I edited the page through the admin and changed the name to 'Template' but oddly the old link still throws the 403 error, I just can't figure out where it's coming from:

    http://www.greenroomeco.com/templates/

  4. pete_398
    Member
    Posted 1 year ago #

    What are the permissions on the /templates/ path ?

  5. pete_398
    Member
    Posted 1 year ago #

    http://www.greenroomeco.com/Templates gives a 404

    http://www.greenroomeco.com/templates gives a 403

    The server will only return a 403 is the permissions are not okay. If there is a path /templates/ make sure it is accessible to the public. If /templates is a 'page' then make sure the permissions are such for public to view.

    Also check the .htacess of course.

  6. austinbedell
    Member
    Posted 1 year ago #

    Thanks Pete,

    'templates' was a wordpress page (the capped 'T' was my mistake, we are only talking about one page), I checked the .php template that it was using and the permissions are 755.

    'templates' doesn't exist anymore though, I removed it and created a temporary page with a different name, yet it's still returning a 403 error?

    I can't figure out where the error is coming from so that I can resume using 'templates' as a page name.

  7. pete_398
    Member
    Posted 1 year ago #

    Your web server logs will tell you what is causing the 403. Are you able to view them ?

Topic Closed

This topic has been closed to new replies.

About this Topic