GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   Tech Domain redirection question (https://gfy.com/showthread.php?t=1381218)

Publisher Bucks 01-16-2025 11:22 PM

Domain redirection question
 
So we have a rather large website that is broken down into sections, when we register a new domain name, what is the simplest way to redirect that domain to a specific area on our main site?

Say we register thisdomain.com how would the easiest way, without anything happening in the browser, such as a meta refresh, to point the domain directly to https://www.thatdomain.com/index.php...ome%20Category so that as soon as it is typed in, that page is what the surfer sees?

I'm thinking it would be easiest to use .htaccess perhaps, unless anyone can suggest a more robust and easier way.

TIA.

Huggles 01-16-2025 11:44 PM

You can set it right at the domain registrar level to re-direct.

cerulean 01-17-2025 02:45 PM

I would recommend doing this with an htaccess, so that you can control it. I'm not sure what would not be robust about an htaccess.

Plus, you may want to redirect something like this later on, and that gives you the freedom to do so:

thisdomain.com/that => thatdomain.com/index.php?category=this&subcategory=that

Huggles is also correct that most domain registrars offer this service, it's basically an htaccess on their end doing the redirect instead.

WiredGuy 01-17-2025 05:18 PM

301 redirects with .htaccess is probably the best way to do this.
WG

fuzebox 01-17-2025 05:32 PM

Namecheap supports redirection to a specific URL. It's the only one I've used that does.

natkejs 01-17-2025 07:52 PM

Quote:

Originally Posted by WiredGuy (Post 23338957)
301 redirects with .htaccess is probably the best way to do this.
WG

This is what I would do, except there is no .htaccess i nginx :pimp

Publisher Bucks 01-18-2025 06:28 PM

I just dont feel comfortable giving a registrar access to redirection, I'd rather set it up myself.


All times are GMT -7. The time now is 07:21 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc