2018-08-28, 03:51 AM
probably off topic but I'll try anyway.
I have a domain "chronicsuicidesupport.com" (hereafter "CSS.com") with an unrelated subdomain "aljones.us" (history / genealogy)
Since my hosting company has been pushing the move to https (ssl cert) I called them and asked for some help since I don't know .htaccess writing.
They modified the existing .htaccess to:
Prior to their "assistance", I could get http://chronicsuicidesupport.com and http://aljones.us without problem. After their change, any attempt to goto aljones.us dumps my user into CSS.com
If I'm reading this correctly, the RewriteComd take any {HTTP_HOST} (which I presume are aljones.us or CSS.com??) and attempts to dump it into CSS.com.
My question, if you can help, is how do I modify this so that requests for aljones.us goto aljones.us not CSS.com
I realize this is probably off topic for MyBB but I need some help!
I have a domain "chronicsuicidesupport.com" (hereafter "CSS.com") with an unrelated subdomain "aljones.us" (history / genealogy)
Since my hosting company has been pushing the move to https (ssl cert) I called them and asked for some help since I don't know .htaccess writing.
They modified the existing .htaccess to:
RewriteEngine on
RewriteOptions inherit
# Use PHP5.4 Single php.ini as default
# Changed PHP handler from application/x-httpd-php54s to application/x-httpd-phpbetas on Tue Jan 12 04:05:21 MST 2016.
AddHandler application/x-httpd-phpbetas .php
#RewriteCond %{HTTP_HOST} ^chronicsuicidesupport\.com$ [OR]
#RewriteCond %{HTTP_HOST} ^www\.chronicsuicidesupport\.com$
#RewriteCond %{REQUEST_URI} !^/\.well-known/acme-challenge/[0-9a-zA-Z_-]+$
#RewriteCond %{REQUEST_URI} !^/\.well-known/cpanel-dcv/[0-9a-zA-Z_-]+$
#RewriteCond %{REQUEST_URI} !^/\.well-known/pki-validation/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$
#RewriteRule ^/?$ "https\:\/\/www\.chronicsuicidesupport\.com\/" [R=301,L]
#RewriteEngine on
#RewriteCond %{HTTP_HOST} ^chronicsuicidesupport.com [NC,OR]
#RewriteCond %{HTTP_HOST} ^www.chronicsuicidesupport.com [NC]
#RewriteRule ^(.*)$ https://www.chronicsuicidesupport.com/$1 [L,R=301,NC]
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://chronicsuicidesupport.com/$1 [R=301,L]
Prior to their "assistance", I could get http://chronicsuicidesupport.com and http://aljones.us without problem. After their change, any attempt to goto aljones.us dumps my user into CSS.com
If I'm reading this correctly, the RewriteComd take any {HTTP_HOST} (which I presume are aljones.us or CSS.com??) and attempts to dump it into CSS.com.
My question, if you can help, is how do I modify this so that requests for aljones.us goto aljones.us not CSS.com
I realize this is probably off topic for MyBB but I need some help!