• I’ve got this page as per the link. I can see and edit it in WP, but when I visit it, it returns a
    Not Found
    The requested document was not found on this server.

    I’m on Current version: 5.8.2

    Any ideas on this please?
    Thanks

    • This topic was modified 3 years, 2 months ago by toprobroy.

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter toprobroy

    (@toprobroy)

    Hi. I’ve fixed this. it was an error on the .htaccess file.

    Please close.

    Thread Starter toprobroy

    (@toprobroy)

    I’ve now worked out to a particular level, why I have this problem. Howwever, I’m baffled as to why my wordpress site doesn’t work, when a certain line is commented out.

    Backtracking…I had a set of forums running under a 3rd party product, which sits in a subdirectory which is licenced by them to operate in that directory. It’s \forum\ and where the login sits for the forums, (not the site, which we don’t allow logins).

    If I comment out the line RewriteRule . /index.php [L] in my .htaccess file, then the forums work. So I’ve put a 444 on that file as it appeared to keep being overwritten by something, that would remove the ## comment on the line.

    The trouble is if I allow that line in the .htaccess my WP site will not work and returns a 404 error.

    Therefore I would like to find out why the site doesn’t work, when the line is uncommented. I’m unsure what that line actually does.

    Any help would be gratefully received.

    Here is the File data:

    # BEGIN WordPress
    # The directives (lines) between "BEGIN WordPress" and "END WordPress" are
    # dynamically generated, and should only be modified via WordPress filters.
    # Any changes to the directives between these markers will be overwritten.
    # Prevent Direct Access Rewrite Rules
    RewriteRule private/([a-zA-Z0-9]+)$ index.php?pda_v3_pf=$1 [L]
    RewriteCond %{REQUEST_FILENAME} -s
    RewriteCond %{HTTP_USER_AGENT} !facebookexternalhit/[0-9]
    RewriteCond %{HTTP_USER_AGENT} !Twitterbot/[0-9]
    RewriteCond %{HTTP_USER_AGENT} !Googlebot/[0-9]
    RewriteRule wp-content/uploads/_pda(\/[A-Za-z0-9_@.\/&+-]+)+\.([A-Za-z0-9_@.\/&+-]+)$ index.php?pda_v3_pf=$1&is_direct_access=true&file_type=$2 [QSA,L]
    # Prevent Direct Access Rewrite Rules End
    # Prevent Direct Access Prevent Hotlinking Rules
    RewriteCond %{HTTP_REFERER} !^$
    RewriteCond %{HTTP_REFERER} !^https://clcmembers.co.uk/ [NC]
    RewriteRule \.(gif|jpg|jpeg|bmp|zip|rar|mp3|flv|swf|xml|png|css|pdf)$ - [F]
    # Prevent Direct Access Prevent Hotlinking Rules End
    
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    ##RewriteRule . /index.php [L]
    </IfModule>
    Options -Indexes
    
    # END WordPress
    • This reply was modified 3 years, 2 months ago by toprobroy.
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Page in WP, but it gets a Document not found’ is closed to new replies.