NaturalHistoryMuseum / scratchpads2

Scratchpads 2.0
http://scratchpads.org
GNU General Public License v2.0
199 stars 83 forks source link

URL's not working in https://wallaceletters.myspecies.info/ and https://wallacefund.myspecies.info/ #6513

Open Hyposcada opened 2 years ago

Hyposcada commented 2 years ago

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!

therobyouknow commented 2 years ago

Rob to liaise and determine dns settings for redirect.

therobyouknow commented 2 years ago

To add to my previous comment, the solution is to pick 1 of 2 approaches:

  1. redirect in the settings for the domain itself - contact the domain owner to arrange. By domain, I am referring to the original domains of http://wallaceletters.info/ and http://wallacefund.info/ OR
  2. add a vhost .conf file for each redirect, on the NHM scratchpads server infrastructure. See below examples as to how I think these files will look

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/

therobyouknow commented 2 years ago

DNS setting at the domain not the server would appear to be the best solution here.