Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter TheNoobNet

    (@thenoobnet)

    I think I might just have too much junk in the trunk when it comes to my main .htaccess file.

    I don’t know if I can post it here, if it’s a security risk to my blog or not. but I have at least 3 lines of RewriteEngine On

    This could be the problem… I’m going to try and move it around a bit and see what’ll happen.

    Plugin Author Emre Vona

    (@emrevona)

    I have multiple domains on the same host.

    Hi, Do you use WPMU (WordPress Multisite) ?

    Thread Starter TheNoobNet

    (@thenoobnet)

    Thank you for your response Emre, I do not believe I have WPMU. What I meant was that I have one host, with directories that each of my domains are pointing to individually. if that makes sense.

    thenoob.net goes to a /thenoob.net/ folder on my server.
    thisdomain1.com goes to a /thisdomain1.com/ folder on my server.
    thatdomain2.com goes to a /thatdomain2.com/ folder on my server… and so on.

    My .htaccess looks like this:

    # BEGIN LBCWpFastestCache
    <IfModule mod_expires.c>
    ExpiresActive On
    ExpiresByType image/jpg "access plus 1 year"
    ExpiresByType image/jpeg "access plus 1 year"
    ExpiresByType image/gif "access plus 1 year"
    ExpiresByType image/png "access plus 1 year"
    ExpiresByType text/css "access plus 1 month"
    ExpiresByType application/pdf "access plus 1 month"
    ExpiresByType text/x-javascript "access plus 1 month"
    ExpiresByType application/x-shockwave-flash "access plus 1 month"
    ExpiresByType image/x-icon "access plus 1 year"
    ExpiresDefault "access plus 2 days"
    </IfModule>
    # END LBCWpFastestCache
    # BEGIN GzipWpFastestCache
    <IfModule mod_deflate.c>
    AddOutputFilterByType DEFLATE text/plain
    AddOutputFilterByType DEFLATE text/html
    AddOutputFilterByType DEFLATE text/xml
    AddOutputFilterByType DEFLATE text/css
    AddOutputFilterByType DEFLATE application/xml
    AddOutputFilterByType DEFLATE application/xhtml+xml
    AddOutputFilterByType DEFLATE application/rss+xml
    AddOutputFilterByType DEFLATE application/javascript
    AddOutputFilterByType DEFLATE application/x-javascript
    </IfModule>
    # END GzipWpFastestCache
    # BEGIN WpFastestCache
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC]
    RewriteCond %{REQUEST_URI} !^/wp-login.php
    RewriteCond %{REQUEST_URI} !^/wp-admin
    RewriteCond %{REQUEST_URI} !^/wp-content
    RewriteRule ^(.*)$ http://%1/$1 [R=301,L]
    RewriteCond %{REQUEST_METHOD} !POST
    RewriteCond %{QUERY_STRING} !.*=.*
    RewriteCond %{HTTP:Cookie} !^.*(comment_author_|wordpress_logged_in|wp-postpass_).*$
    RewriteCond %{HTTP:X-Wap-Profile} !^[a-z0-9\"]+ [NC]
    RewriteCond %{HTTP:Profile} !^[a-z0-9\"]+ [NC]
    RewriteCond %{DOCUMENT_ROOT}/wp-content/cache/all/$1/index.html -f
    RewriteRule ^(.*) "/wp-content/cache/all/$1/index.html" [L]
    </IfModule>
    # END WpFastestCache
    # BEGIN www redirect
    RewriteEngine On
    RewriteBase /
    RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC]
    RewriteRule ^(.*)$ http://%1/$1 [R=301,L]
    # END www redirect
    # 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
    Plugin Author Emre Vona

    (@emrevona)

    It works properly for sub-pages. Please look at the source of this page http://thenoob.net/tutorials/mark-emails-read-gmail/

    it does not work for home page. I have this problem with one site too. Server causes this problem.

    By the way, there is no need to use redirection rule because the plugin does it.

    # BEGIN www redirect
    RewriteEngine On
    RewriteBase /
    RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC]
    RewriteRule ^(.*)$ http://%1/$1 [R=301,L]
    # END www redirect

    Thread Starter TheNoobNet

    (@thenoobnet)

    Hey cool! It works! πŸ˜€ Too bad it doesn’t work on the home page though. But it sort of works, which is better than flat out doesn’t work. πŸ™‚

    Thanks for the help.

    Plugin Author Emre Vona

    (@emrevona)

    yes you are right πŸ™‚ I couldn’t solve this problem. As I said before, server causes this issue

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

The topic ‘Subdirectory Installation – Doesn't seem to be fixed.’ is closed to new replies.