New domain mirroring to Neocities?

Need help with HTML, CSS, JS, PHP etc. and don't want to get berated on stack overflow? We're here to help!
User avatar
NinAcTi0N
Posts: 138
Joined: Sun Oct 01, 2023 3:47 am
Location: The lab, Papercut Islands
Contact:

New domain mirroring to Neocities?

Post by NinAcTi0N »

This is one thing I'll have to do... I've gotten a new domain outside of Neocities, and I want my Neocities subdomain to redirect to it. But I don't want the page to just look ugly when you look at the Neocities userpage, I want it to have the preview of how my enter page in the new domain looks like.

I have no idea how hard this may be, but I'm hoping I can get some help :'] Any ideas are greatly appreciated!
Image Image Image Image
User avatar
pom
administrator
Posts: 91
Joined: Tue Sep 19, 2023 12:14 am
Location: a cloud
Contact:

Re: New domain mirroring to Neocities?

Post by pom »

Sorry, just to understand better do you mean you're hosting off neocities but you want when someone clicks your homepage from the profile to redirect to the new domain but still keep the preview image on your profile?

its possible to do by putting <meta http-equiv = "refresh" content = "3; url = "NEW SITE URL.COM" /> in the <head> tag of the homepage on nc to redirect, just keep the homepage as it is with this added and your profile image won't change

example where my "new site" redirects to pomelo.lol:
https://lycheemilk.github.io/redirecttest.html
view-source:lycheemilk.github.io/redirecttest.html
Image Image Image
Post Reply