Your requests are being handled by .htaccess
That’s why its generating 404
Yes, thanks for your post, but I understand *why*
The (WordPress) .htaccess, in the root folder, is trying to re-route to a post with a similar name, which obviously does not exist.
The only fixes that I have found so far, involve shutting off the 404 and the 403, which isn’t really very elegant. I was hoping that someone had a better suggestion.
Spend some minutes reading about .htaccess [ Google ]
You could solve Without changing the exiting setup
you said:
>Spend some minutes reading about .htaccess [ Google ]
I had already said:
>The only fixes that I have found so far…
Anyway..
modify your .htaccess file by inserting the following code directly after the “RewriteEngine on” directive, before the wordpress rewrites:
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{REQUEST_URI} “/YourFolderNameHere/”
RewriteRule (.*) $1 [L]
# Rest common WP rules follows below this line
A elementary level tool to save your time is is available here http://www.lyxx.com/freestuff/002.html
That is what I had in the first place.
It worked fine, but it doesn’t seem to work when I add the /myfolder/.htaccess with the password protection. If I delete /myfolder/.htaccess, it works fine. But I need the password protection.
Thank you for the suggestion of the elementary level tool, but I usually have no problem with .htaccess
Try This
.
.
RewriteCond %{REQUEST_URI} “/YourFolderNameHere/”
#RewriteRule (.*) $1 [L]
#Write your rules (/myfolder/.htaccess) Below this line here
.
.
# Rest common WP rules follows below this line
That’s not going to work, all you have is an “if”
I have up on the .htaccess route, and protected the pages with session passwords and a PHP login screen.