Home .htaccess issue, folder in wordpress?
Reply: 1

.htaccess issue, folder in wordpress?

chronotrigga
1#
chronotrigga Published in 2017-12-04 19:27:42Z

I have a folder called /mf/ that is not related to the wordpress install but it is in the same root folder. When I visit the folder path (www.domain.com/mf) it gives me a 500 error. I know that this is an .htaccess issue.

I've modded my root .htaccess to do the below code but it still does not work:

 <IfModule mod_rewrite.c>
 RewriteEngine On
 RewriteBase /
 RewriteCond %{REQUEST_URI} ^/mf/(.*)$ [OR]
 RewriteRule ^.*$ - [L]
 </IfModule>


 # BEGIN WordPress
 <IfModule mod_rewrite.c>
 RewriteEngine On
 RewriteBase /
 RewriteRule ^index\.php$ - [L]
 RewriteCond %{REQUEST_FILENAME} !-f
 RewriteCond %{REQUEST_FILENAME} !-d
 RewriteRule . /index.php [L]
 </IfModule>
 # END WordPress

Any advice on how to fix this .htaccess issue?

shushu304
2#
shushu304 Reply to 2017-12-04 20:52:30Z

in your "mf" folder create a .htaccess file and there put all the configuration that nedded, and in the main folder-wordpress put only the wordpress part.

in th "mf" change the RewriteBase too.

main-wordpress

# BEGIN WordPress
 <IfModule mod_rewrite.c>
 RewriteEngine On
 RewriteBase /
 RewriteRule ^index\.php$ - [L]
 RewriteCond %{REQUEST_FILENAME} !-f
 RewriteCond %{REQUEST_FILENAME} !-d
 RewriteRule . /index.php [L]
 </IfModule>
 # END WordPress

the mf folder

<IfModule mod_rewrite.c>
 RewriteEngine On
 RewriteBase /mf/
 RewriteCond %{REQUEST_URI} ^/mf/(.*)$ [OR]
 RewriteRule ^.*$ - [L]
 </IfModule>
You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.336688 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO