Subdirectory wordpress installation in subdirectory
-
Hi everybody,
well as the title states I have a subdirectory WP network instalation installed in subdirectory: https://archeologia.uni.lodz.pl/nowaarcheologia. What I need is to:
1. redirect from domain https://archeologia.uni.lodz.pl to above address, what is achieved actually by putting .htaccess file in root directory (looks like this):
RewriteEngine on RewriteRule (.*) https://archeologia.uni.lodz.pl/nowaarcheologia/$1 [R=301,L]
2. get rid of /nowaarcheologia/ from site address to make it look like domain address: https://archeologia.uni.lodz.pl instead of https://archeologia.uni.lodz.pl/nowaarcheologia. i have another .htaccess file in WordPress root folder this time (/nowaarcheologia/), which looks like this:
<IfModule mod_rewrite.c> RewriteEngine On RewriteBase /nowaarcheologia/ RewriteRule ^index\.php$ - [L] # add a trailing slash to /wp-admin RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L] RewriteCond %{REQUEST_FILENAME} -f [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^ - [L] RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*) var/www/archeologia/nowaarcheologia/$2 [L] RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ var/www/archeologia/nowaarcheologia/$2 [L] RewriteRule . index.php [L] </IfModule> # END WordPress # END htaccess
I searched the web for two days now and I can’t find an answer to my second question, maybe there is anybody who can actually help me?
thanks in advance, Dan.
- The topic ‘Subdirectory wordpress installation in subdirectory’ is closed to new replies.