WPUInstaller/inc/htaccess-wpsubfolder.txt
2017-01-27 14:35:07 +01:00

31 lines
822 B
Text

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase "/"
#If the URL start with public stop redirect
RewriteRule wp\-cms\/index\.php$ - [L]
#If you request an URL it does not start with wp-cms
#Else the HTACCESS have done the redirect
#you can go to the index.php to execute code
RewriteCond %{REQUEST_URI} ^/wp-cms
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /wp-cms/index.php [L]
#wp-cms is not here so we add it :)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /wp-cms/$1 [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