vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Redirect a deleted thread link (https://vborg.vbsupport.ru/showthread.php?t=326759)

shoppingtelly 10-01-2018 11:53 AM

Redirect a deleted thread link
 
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

Quote:

Originally Posted by shoppingtelly (Post 2596555)
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

Quote:

Originally Posted by shoppingtelly (Post 2596557)
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.

iA1 10-05-2018 01:17 AM

Install this addon and it will just remove adsense code from error pages.
https://vborg.vbsupport.ru/showthread.php?t=326045


All times are GMT. The time now is 06:36 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01004 seconds
  • Memory Usage 1,725KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (9)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete