Skip to content

Domain Migration: Apache Server 301 Redirects and Updated References #137

Open
ScottHaval wants to merge 5 commits into
vbuterin:mainfrom
ScottHaval:main
Open

Domain Migration: Apache Server 301 Redirects and Updated References #137
ScottHaval wants to merge 5 commits into
vbuterin:mainfrom
ScottHaval:main

Conversation

@ScottHaval
Copy link
Copy Markdown

Summary

This PR addresses broken links from the old vitalik.ca domain by:

  1. Adding Apache .htaccess redirect configuration
  2. Updating domain references in config files
  3. Converting hardcoded URLs to relative paths in translated posts

Changes Made

1. Added 301 Redirect Configuration

  • Created site/.htaccess with Apache redirect rules
  • Redirects all vitalik.ca traffic to vitalik.eth.limo while preserving full URL paths
  • Activates automatically when ./publish.py --sync is run

2. Updated Config Files

3. Fixed Translated Posts (17 references)

Converted absolute URLs to relative paths (matching English versions):

  • legitimacy_ES.md (9 images)
  • rollup_ES.md (3 images)
  • networkstates_zhCN.md (3 images)
  • ux_zhCN.md (1 image)
  • voting.md (1 blog post link)

Notes

  • Some references to /files/misc_files/ remain unchanged as those files don't exist in the repo or on IPFS
  • HTML files in site/ will auto-update when posts are regenerated
  • Requires mod_rewrite enabled on Apache (typically enabled by default)

Testing

To activate the redirect, run:

./publish.py --sync

…osts with relative paths (consistent with main blog posts)
…ill rediect the user to the correct vitalik.eth.limo url. Simply run '/publish.py --sync' to Apache Server and when users visit vitalik.ca, a 301 redirect will send them to the correct link on vitalik.eth.limo
@ScottHaval
Copy link
Copy Markdown
Author

Hi @vbuterin, would you be so kind as to review my PR?

I have fixed the domain redirect issue with your prior Apache Server setup on the .ca TLD. Now you can continue to operate the site locally, make updates, generate the content hash for IPFS/Limo, and sync with your prior Apache Server. The server will 301 redirect the links to your new vitalik.eth.limo site via a .htaccess file.

This is important because it allows for backwards compatibility for historic posts and articles online regarding your blog. Also, it will not disrupt your workflow as you can conduct the fix simply by syncing it with your VPS/Server as you previously did when writing new articles.

It is crucial this fix is made. Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant