mirror of
https://gh.wpcy.net/https://github.com/WordPressUtilities/WPUInstaller.git
synced 2026-05-03 19:22:20 +08:00
31 lines
822 B
Text
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
|