.htaccess and subdirectories, 403 error
-
I am using permalinks like example.com/post/is/here/. I have a page called “examples” (address is example.com/site/examples/).
I would like to put images to the directory example.com/site/examples/. However, if I create a folder example.com/site/examples/, the WP page /examples/ stops working and gives a 403 error.
What should I do to get this thing working? It would be important to have the page at the address example.com/site/example/ and its images etc. like example.com/site/examples/image.png. Now it seems that I can’t use the WP page and the “real” directory at the same time.
Here is my .htaccess:
RewriteEngine On RewriteBase /site/ RewriteCond %{HTTP_HOST} ^shinatrya\.net RewriteRule ^(.*)$ https://www.example.net/site/$1 [L,R] # BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase /site/ RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /site/index.php [L] </IfModule> # END WordPress
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘.htaccess and subdirectories, 403 error’ is closed to new replies.