- Oct 28, 2020
- 9,482
- 9,778
Hi everyone!
First of all, mods please move this thread to the right section if it doesn't belong in here. I couldn't find a .htaccess-specific thread, that's why I'm putting it in here.
Now, I just purchased an expired domain and I want to redirect all of its unknown / meaningless URLs to the homepage.
I did find a few URLs that still have backlinks from wikipedia and reddit, so I'm gonna manually redirect those manually and individually to care for them properly, but all other URLs (there's 100s of them) I don't feel like doing manually, and I don't care about them, either. But the reason for which I want to redirect them to the homepage instead of just letting them go is because they might still carry some weight... or still get traffic occasionally and I don't want all this value to go to waste.
Besides, I don't want my website to be full of 404 pages, so redirecting these obscure URLs to a live page on my website is the right thing to do... I think. But the problem is that I don't know how to do it with .htaccess, and I can't find a tutorial for this in DDG, either (well, I didn't search thoroughly to be honest, I just checked the first 3-4 pages and then moved on).
But anyway, can someone who is familiar with .htaccess and redirects share the code I need to use? I'm sure it's not complicated, but it's probably one step above my knowledge of htaccess, so I don't know it
Please let me know what the code for this type of redirection is if it's not too much trouble.
Thanks!
First of all, mods please move this thread to the right section if it doesn't belong in here. I couldn't find a .htaccess-specific thread, that's why I'm putting it in here.
Now, I just purchased an expired domain and I want to redirect all of its unknown / meaningless URLs to the homepage.
I did find a few URLs that still have backlinks from wikipedia and reddit, so I'm gonna manually redirect those manually and individually to care for them properly, but all other URLs (there's 100s of them) I don't feel like doing manually, and I don't care about them, either. But the reason for which I want to redirect them to the homepage instead of just letting them go is because they might still carry some weight... or still get traffic occasionally and I don't want all this value to go to waste.
Besides, I don't want my website to be full of 404 pages, so redirecting these obscure URLs to a live page on my website is the right thing to do... I think. But the problem is that I don't know how to do it with .htaccess, and I can't find a tutorial for this in DDG, either (well, I didn't search thoroughly to be honest, I just checked the first 3-4 pages and then moved on).
But anyway, can someone who is familiar with .htaccess and redirects share the code I need to use? I'm sure it's not complicated, but it's probably one step above my knowledge of htaccess, so I don't know it
Please let me know what the code for this type of redirection is if it's not too much trouble.
Thanks!