pyroboy024911
Forum Replies Created
-
Forum: Networking WordPress
In reply to: Adding a site creates Internal Server Error 500Ok this might sound weird but it worked and i can’t explain it myself… so as i would add a site i would just replace the .htaccess every time with a working version, i did this about three times mind you. Then after awhile i the problem resolved itself and wordpress stopped over writing my .htaccess… anywho this is my current .htaccess file since then ive added caching and still everything has been running smooth since. I really can’t explain it but just try it :/
PS upgrade to 3.6 went smooth as well…
# Redirect non-www urls to www RewriteEngine on RewriteCond %{HTTP_HOST} ^[^.]+\.[^.]+$ RewriteCond %{HTTPS}s ^on(s)| RewriteRule ^ http%1://www.%{HTTP_HOST}%{REQUEST_URI} [R=301,L] # BEGIN W3TC Browser Cache <IfModule mod_deflate.c> <IfModule mod_headers.c> Header append Vary User-Agent env=!dont-vary </IfModule> AddOutputFilterByType DEFLATE text/css text/x-component application/x-javascript application/javascript text/javascript text/x-js text/html text/richtext image/svg+xml text/plain text/xsd text/xsl text/xml image/x-icon application/json <IfModule mod_mime.c> # DEFLATE by extension AddOutputFilter DEFLATE js css htm html xml </IfModule> </IfModule> # END W3TC Browser Cache # BEGIN W3TC Page Cache core <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteCond %{HTTP:Accept-Encoding} gzip RewriteRule .* - [E=W3TC_ENC:_gzip] RewriteCond %{REQUEST_METHOD} !=POST RewriteCond %{QUERY_STRING} ="" RewriteCond %{REQUEST_URI} \/$ RewriteCond %{HTTP_COOKIE} !(comment_author|wp\-postpass|w3tc_logged_out|wordpress_logged_in|wptouch_switch_toggle) [NC] RewriteCond "%{ENV:SUBDOMAIN_DOCUMENT_ROOT}/wp-content/cache/page_enhanced/%{HTTP_HOST}/%{REQUEST_URI}/_index.html%{ENV:W3TC_ENC}" -F RewriteRule .* "/wp-content/cache/page_enhanced/%{HTTP_HOST}/%{REQUEST_URI}/_index.html%{ENV:W3TC_ENC}" [L] </IfModule> # END W3TC Page Cache core # BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] # add a trailing slash to /wp-admin RewriteRule ^wp-admin$ wp-admin/ [R=301,L] RewriteCond %{REQUEST_FILENAME} -f [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^ - [L] RewriteRule ^(wp-(content|admin|includes).*) garagedoorsolutionstx/$1 [L] RewriteRule ^(.*\.php)$ garagedoorsolutionstx/$1 [L] RewriteRule . index.php [L] </IfModule> # END WordPress # BEGIN wtwp_cache # END wtwp_cache # BEGIN wtwp_security # END wtwp_security
Forum: Networking WordPress
In reply to: drop WWW to fix domain.com redirect signup.phpOk sorry to keep posting but i think i fixed my problems. I’m not even sure if this the right way of doing things, since my ultimate goal is to be SEO friendly.
This is my .htaccess fix
# Redirect non-www urls to www and ignores sub-domains RewriteEngine on RewriteCond %{HTTP_HOST} ^[^.]+\.[^.]+$ RewriteCond %{HTTPS}s ^on(s)| RewriteRule ^ http%1://www.%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
my only other concern is that i had to use this to ignore sub-domains because each network site going into the dashboard would revert back to subdomain.domain.com instead of being mapped to the specified domain i mapped it to… i just not sure that’s right it because it doesn’t seem every uniform to me.
Forum: Networking WordPress
In reply to: drop WWW to fix domain.com redirect signup.phpquick note:
when i use
# Redirect non-www urls to www RewriteEngine on RewriteCond %{HTTP_HOST} ^garagedoorsolutionstx\.com [NC] RewriteRule (.*) https://www.garagedoorsolutionstx.com/$1 [R=301,L]
garagedoorsolutionstx.com no longer redirects to the signup page but
using https://www.dallasgaragedoors.com does redirect back to
https://www.garagedoorsolutionstx.com/wp-signup.php?new=www.dallasgaragedoors.com
and i would also like to note that i have my domain mapping set up with just dallasgaragedoors.com which works with no redirect :/
Forum: Networking WordPress
In reply to: drop WWW to fix domain.com redirect signup.phpOk so i did what you suggested it only made things worse broke links, and images. I was able to just restore my database back its prior state. When i used the tool i did a site wide search through all tables was i supposed to do that?
ok so here is what i have:
garagedoorsolutionstx.com redirects to
https://www.garagedoorsolutionstx.com/wp-signup.php?new=garagedoorsolutionstx.com
and my mapped domain dallasgargedoors.com redirects to
https://www.garagedoorsolutionstx.com/wp-signup.php?new=dallasgaragedoors.com
but https://www.dallasgargedoors.com works just fine as well as https://www.garagedoorsolutionstx.com
when using the
function ms_block_wp_signup() { if( strpos( $_SERVER['SCRIPT_NAME'], 'wp-signup.php' ) !== false ) { wp_redirect( get_option('siteurl') ); die; } } add_action('wp', 'ms_block_wp_signup', 99);
all it does it loop back and forth between garagedoorsolutionstx.com and dallasgaragedoors.com
what can i do to fix this been at this for a few days now