• Resolved justono

    (@justono)


    I just installed this plugin and I can already see a vast improvement in my sites speed. But I have a subdomain on my server that serves as a way for clients to view our sites before we push them live.

    Is there a way for this plugin to not rewrite the subdomains on my server?

    https://wordpress.org/plugins/wp-fastest-cache/

Viewing 15 replies - 1 through 15 (of 16 total)
  • Plugin Author Emre Vona

    (@emrevona)

    Hi, is your subdomain address like SUB.domain.com ?

    Thread Starter justono

    (@justono)

    yeah.

    the root domain is agoodconcept.com and the subdomain is dev.agoodconcept.com

    Plugin Author Emre Vona

    (@emrevona)

    but if you set up cache for root domain, it does not work for sub-domain.

    Thread Starter justono

    (@justono)

    Hmm, it’s still rewriting the domain and it wasn’t before I installed the plugin.

    Could it be how my server is organized?

    Currently this is my hosts default file structure:

    public_html >
    – (inside no other folder) is the WordPress site for agoodconcept.com
    – (subdomain) dev.agoodconcept.com

    The host I’m using (Site5) is treating the subdomain as a directory inside the public_html

    Plugin Author Emre Vona

    (@emrevona)

    Can you show me an example? I cannot login dev.agoodconcept.com. is dev.agoodconcept.com cached?

    Thread Starter justono

    (@justono)

    Ok I figured it out at least for now. Unless you have a better way to ignore the subdomain directory.

    I just put another .htaccess file in the subdomain directory and added:

    RewriteEngine Off

    Plugin Author Emre Vona

    (@emrevona)

    alright. I have written it into my toDo list. thank you. I will solve it.

    Thread Starter justono

    (@justono)

    This is what a url to one of the sites in the dev.agoodceonept.com looked like before
    dev.agoodconcept.com/Sites/ParadigmJet/

    This is what this url looks like now (before I figured out the work around in my last post)
    http://www.dev.agoodconcept.com/dev.agoodconcept.com/Sites/ParadigmJet/

    Plugin Author Emre Vona

    (@emrevona)

    “Authorization Required”. I cannot test it

    Thread Starter justono

    (@justono)

    What do you need to test this?

    I can create another subdomain on my server without a password and without the “fix for now”

    EDIT:
    Here is a subdomain on my server.

    http://test.agoodconcept.com/index.html

    Plugin Author Emre Vona

    (@emrevona)

    ok thank you. I will inform you

    Plugin Author Emre Vona

    (@emrevona)

    justono, are you talking about “www redirection” ?

    http://test.agoodconcept.com/index.html is redirected to http://www.test.agoodconcept.com/index.html

    are you talking about this issue?

    Thread Starter justono

    (@justono)

    For me,

    http://test.agoodconcept.com/index.html

    is being redirected to http://www.test.agoodconcept.com/test.agoodconcept.com/index.html

    thats the issue I’m talking about. I just checked the cached files, the plugin is not caching anything from the subdomain/subdirectory “test.agoodconcept.com” or “dev.agoodconcept.com” its just redirecting them like the example above.

    I was able to stop the redirection/rewrite for dev.agoodconcept.com by putting

    RewriteEngine Off

    in .htaccess file in the root folder for dev.agoodconcept.com

    Plugin Author Emre Vona

    (@emrevona)

    Hi justono, If you want to prevent redirecting, you should remove these lines from .htaccess

    RewriteCond %{HTTP_HOST} !^www\.
    RewriteCond %{REQUEST_URI} !^/wp-login.php
    RewriteCond %{REQUEST_URI} !^/wp-admin
    RewriteCond %{REQUEST_URI} !^/wp-content
    RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]

    Thread Starter justono

    (@justono)

    Hey,

    I switched hosts I was in the process of doing that anyway and the server is better for handling subdomains so this is no longer an issue for me.

    I have another issue but I’m looking through the support tickets for an answer.

    Thanks for you help!

Viewing 15 replies - 1 through 15 (of 16 total)
  • The topic ‘Ignore Rewrite for Subdomains’ is closed to new replies.