View Full Version : Redirect a deleted thread link
shoppingtelly
10-01-2018, 11:53 AM
Not sure if this is even possible.
I got a warning from Google Adsense, could not resolve where the problem was so just removed the whole thread, now the violation has changed because they still check the link but no content because I have removed the thread.
Is it possible to divert an old link eg: showthread.php?57713-Breathing to either a 404 page or home page?
Thank you in advance
In Omnibus
10-01-2018, 12:48 PM
You can try adding the following to your .htaccess file:
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^ /index.html [L]
shoppingtelly
10-01-2018, 01:03 PM
Thank you, where would I put showthread.php?57713-Breathing and where would I put the redirect link in the code?
Thank you again
In Omnibus
10-01-2018, 01:27 PM
Thank you, where would I put showthread.php?57713-Breathing and where would I put the redirect link in the code?
Thank you again
Adding that to your .htaccess file should redirect all 404 errors to your index page.
There should be no need to link any specific thread.
shoppingtelly
10-01-2018, 01:38 PM
Thank you again, one final question have looked and cant find the .htaccess where would it be located?
In Omnibus
10-01-2018, 02:44 PM
Thank you again, one final question have looked and cant find the .htaccess where would it be located?
It should be located in the root folder, which is usually public_html
shoppingtelly
10-01-2018, 03:13 PM
Thank you again, sadly didn't work, still getting the page with the message
https://vborg.vbsupport.ru/external/2018/10/1.png
If I removed the Adsense from that page it would be removed from all pages so at a loss how to make Google Happy.
Sadly not been able to resolve, any further help would be appreciated.
shoppingtelly
10-04-2018, 03:25 PM
Don't know if anyone has any other ideas, would really appreciate any help.
Install this addon and it will just remove adsense code from error pages.
https://vborg.vbsupport.ru/showthread.php?t=326045
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.