Support » Networking WordPress » need help with htaccess please

  • Resolved YogieAnamCara



    I do have a WP multisite network setup where each site has its own domain.

    The htaccess looks like this (and as I do not know anything about it – it might be messy). May I kindly ask you to help me to clean it up, please?

    There is also one thing that is not working and I try to achieve. When somebody types into a browser the site will be but the /folder is ignored.

    if you type all is good and you will end at the folder.

    Oh, and of course all should go to https instead of http if still somebody types

    I’m sorry but I do not know where else I could get help on this.

    <IfModule mod_rewrite.c>
            RewriteEngine On
            RewriteCond %{REQUEST_URI} ^/?wp\-content/+debug\.log$
            RewriteRule .* - [F,L,NC]
    <IfModule !mod_rewrite.c>
    	<Files "debug.log">
    	<IfModule mod_authz_core.c>
    		Require all denied
    	<IfModule !mod_authz_core.c>
    		Order deny,allow
    		Deny from all
    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    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).*) $2 [L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L]
    RewriteRule . index.php [L]
    # END WordPress

    So in short all should be redirected to (which is working) but the folder if given is not taken into account, only if you type www and so on…

    Many thanks in advance.


Viewing 2 replies - 16 through 17 (of 17 total)
  • Thread Starter YogieAnamCara


    Hello @bcworkz

    means it would be better to have these lines altered like this?

    RewriteCond %{HTTP_HOST} !^teilnehmer\. [NC]
    RewriteCond %{HTTP_HOST} !^joerg\. [NC]

    [NC] is to ignore lower and upper case right?

    Cheers and thanks a lot again!

    Moderator bcworkz


    Yes, that’s perfect. Correct, NC == ignore case. You’re welcome!

Viewing 2 replies - 16 through 17 (of 17 total)
  • You must be logged in to reply to this topic.