• So I am not a developer by any means, maintaining my company’s website just fell into my lap. Recently we switched to a new hosting provider. The website in question is https://www.options-inc.org. I thought I did the site migration correctly, but now elements to the site are broken. The website itself loads, but all of the subdomains are broken. Yesterday in the migration I received several errors when uploading our database to MyPHPAdmin, but I am not sure if this is related. I also noticed, that the error page that appears when you click on a subdomain mentions the .htaccess file. I have made some modifications to this file to allow for gzip, and I am not sure if this is related. I tried troubleshooting the problem by just replacing the .htaccess file with a basic one, but the problem was still present.

    The way my .htaccess is setup is like this:

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

    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

    #Gzip
    <ifmodule mod_deflate.c>
    AddOutputFilterByType DEFLATE text/text text/html text/plain text/xml text/css application/x-javascript application/javascript text/javascript
    </ifmodule>
    #End Gzip

    <FilesMatch “\\.(js|css|html|htm|php|xml)$”>
    SetOutputFilter DEFLATE
    </FilesMatch>

    <IfModule mod_gzip.c>
    mod_gzip_on Yes
    mod_gzip_dechunk Yes
    mod_gzip_item_include file \.(html?|txt|css|js|php|pl)$
    mod_gzip_item_include handler ^cgi-script$
    mod_gzip_item_include mime ^text/.*
    mod_gzip_item_include mime ^application/x-javascript.*
    mod_gzip_item_exclude mime ^image/.*
    mod_gzip_item_exclude rspheader ^Content-Encoding:.*gzip.*
    </IfModule>

    # 480 weeks
    <FilesMatch “\.(ico|pdf|flv|jpg|jpeg|png|gif|js|css|swf)$”>
    Header set Cache-Control “max-age=290304000, public”
    </FilesMatch>

    # 2 DAYS
    <FilesMatch “\.(xml|txt)$”>
    Header set Cache-Control “max-age=172800, public, must-revalidate”
    </FilesMatch>

    # 2 HOURS
    <FilesMatch “\.(html|htm)$”>
    Header set Cache-Control “max-age=7200, must-revalidate”
    </FilesMatch>

    ## EXPIRES CACHING ##
    <IfModule mod_expires.c>
    ExpiresActive On
    ExpiresByType image/jpg “access 1 year”
    ExpiresByType image/jpeg “access 1 year”
    ExpiresByType image/gif “access 1 year”
    ExpiresByType image/png “access 1 year”
    ExpiresByType text/css “access 1 month”
    ExpiresByType application/pdf “access 1 month”
    ExpiresByType text/x-javascript “access 1 month”
    ExpiresByType application/x-shockwave-flash “access 1 month”
    ExpiresByType image/x-icon “access 1 year”
    ExpiresDefault “access 2 days”
    </IfModule>
    ## EXPIRES CACHING ##

    <FilesMatch “\.(?i:php)$”>
    <IfModule !mod_authz_core.c>
    Order allow,deny
    Deny from all
    </IfModule>
    <IfModule mod_authz_core.c>
    Require all denied
    </IfModule>
    </FilesMatch>

    # END WordPress’

    So is this a .htaccess problem, a database issue, am I just dumb (answer: more than likely yes), or is there something else wrong?

    Thank you for your time.

Viewing 1 replies (of 1 total)
  • Thread Starter kanda728

    (@kanda728)

    The error I receive when trying to upload the database is:

    SQL query:

    INSERT INTO wp_cf7dbplugin_st (submit_time) VALUES
    (1445028431.8121),
    (1445288973.0609),
    (1445461330.2301),
    (1445724770.6681),
    (1445736194.8740),
    (1445812956.7157),
    (1445978777.1494),
    (1446053959.3474),
    (1446745899.4400),
    (1448645502.4898),
    (1448726396.1261),
    (1448832042.8323),
    (1448915598.3302),
    (1449078609.9248),
    (1449198500.9027),
    (1449270308.2106),
    (1449415530.6266),
    (1449435768.6567),
    (1449673680.2087),
    (1450297093.0696),
    (1451149728.9854),
    (1451419993.7149),
    (1451781548.5332),
    (1451916636.2735),
    (1452068040.4429),
    (1452489486.6318),
    (1452964395.7841),
    (1453157473.5494),
    (1453254237.2260),
    (1453470740.6252),
    (1453482134.2757),
    (1454461848.7893),
    (1455134499.9113),
    (1456239450.1568),
    (1456294742.1843),
    (1456779996.4713),
    (1456969206.0287),
    (1457013768.5790),
    (1457102276.6916),
    (1457381873.8522),
    (1457488700.9741),
    (1457543643.3076),
    (1458067486.4641),
    (1458133250.7395),
    (1458312540.4835),
    (1458317201.6074),
    (1458325429.4684),
    (1458326605.8301),
    (1458329813.5195),
    (1458498478.18[…]
    MySQL said: Documentation

    #1062 – Duplicate entry ‘1445028431.8121’ for key ‘PRIMARY’

Viewing 1 replies (of 1 total)
  • The topic ‘Main page loads but the subdomains cause a 404 error.’ is closed to new replies.