Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • If someone cares, here how i solved the problem. I had to delete the htaccess in the wordpress folder and put this htaccess in my root. So both the root and the folder where wordpress is are redirected correctly to my www′s

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteCond %{HTTP_HOST} !^www\.domain\.de$
    RewriteRule ^(.*) https://www.domain.de/$1 [R=301,L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^blog/ /blog/index.php [L]
    </IfModule>

    # END WordPress

    Hello,
    i have a similar problem. I have the wordpress blog in an extra folder. Like this domain.com/blog/. I tried the redirect tips above and i gives me an Error 500.
    I have a normal website at *www.domain.com* and there a 301 redirect when someone uses domain.com to redirect to *www.domain.com*, and that works. But when i use domain.com/blog/ it does not work for that. Now i tried some different redirect tips i got in the blog htaccess, but nothing works. Can please somebody tell me exactly what to write in my htaccess to get it work? And please dont just say put this there, i tried so much to put this there and nothing worked. Please when possible give me a complete example. Here is my htaccess file without changes i tried before, and thank you for your help.

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /blog/
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /blog/index.php [L]
    </IfModule>

    # END WordPress

Viewing 2 replies - 1 through 2 (of 2 total)