Open Hyposcada opened 2 years ago
Rob to liaise and determine dns settings for redirect.
To add to my previous comment, the solution is to pick 1 of 2 approaches:
Apache vhost .conf file for http://wallaceletters.info
(HTTP without the S) to https://wallaceletters.myspecies.info
(HTTPS)
<IfModule mod_ssl.c>
<VirtualHost *:80>
ServerAdmin webmaster@localhost
ServerName wallaceletters.info
RewriteEngine on
RewriteCond %{SERVER_NAME} =wallaceletters.myspecies.info
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
</VirtualHost>
</IfModule>
Apache vhost .conf file for http://wallacefund.info
(HTTP without the S) to https://wallacefund.myspecies.info
(HTTPS)
<IfModule mod_ssl.c>
<VirtualHost *:80>
ServerAdmin webmaster@localhost
ServerName wallacefund.info
RewriteEngine on
RewriteCond %{SERVER_NAME} =wallacefund.myspecies.info
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
</VirtualHost>
</IfModule>
Note - should test these with sub-URL fragments to confirm that entire URL is redirected, e.g. https://wallacefund.info/sub-url-1/sub-url-2/
goes to https://wallacefund.myspecies.info/sub-url-1/sub-url-2/
DNS setting at the domain not the server would appear to be the best solution here.
Last year the Urls of my two Scratchpads were changed by the Scratchpad team from http://wallaceletters.info/ to https://wallaceletters.myspecies.info/ and from http://wallacefund.info/ to https://wallacefund.myspecies.info/ Unfortunately there are hundreds of links to the old versions of these Urls in both Scratchpads, and it is simply too much work for me to find and update them. Would it be possible for you to search through the code of each site, and find and replace the old with the new Urls? E.g. for the Wallace Fund site search for all occurrences of "http://wallaceletters.info/" and replace them with "https://wallaceletters.myspecies.info" AND also find "http://wallacefund.info/" and replace with "https://wallacefund.myspecies.info/" [Both sites have links to pages within the site and links to pages in the other site]. Thanks!