Mobile app version of vmapp.org
Login or Join
Tiffany637

: My subdomains to a folder won't work I'm trying to host a WordPress network. Though, the network doesn't work with the built-in WordPress subdomain redirection, that's why I create directly the

@Tiffany637

Posted in: #Domains #Htaccess

I'm trying to host a WordPress network. Though, the network doesn't work with the built-in WordPress subdomain redirection, that's why I create directly the subdomains at my host (legtux.org, a free French host). The thing is I have a second blog, hosted at thomaskowalski.net/pensees, and I'd like to go there by pensees.thomaskowalski.net. I created a temporary subdomain (http://coucou.thomaskowalski.net/) which should go to the /pensees subfolder, but well... it doesn't (Internal error). Here is my htaccess (at the root) :

RewriteEngine On
RewriteBase /
RewriteRule ^index.php$ - [L]
# uploaded files
RewriteRule ^([_0-9a-zA-Z-]+/)?files/(.+) wp-includes/ms-files.php?file= [L]
# add a trailing slash to /wp-admin
RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ wp-admin/ [R=301,L]
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^ - [L]
RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*) [L]
RewriteRule ^([_0-9a-zA-Z-]+/)?(.*.php)$ [L]
RewriteRule . index.php [L]


Thank you

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Tiffany637

1 Comments

Sorted by latest first Latest Oldest Best

 

@Merenda212

There must be an option in your host to redirect the pensees folder to your subdomains. Go to sub-domain settings, then instead of redirecting the root folder /, try changing the option to this one- /pensees or whichever folder you want.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme