This section is for posting questions which are not directly related to WYSIWYG Web Builder.
Examples of off topics: web server configuration, hosting, programming related questions, third party scripts.
Note that these questions will generally not be answered by the administrators of this forum.
I know this not a WB issue but I was hoping to pick the great minds who hang out here.
Does anyone know if there is a way to have 404 page specifically to only work from one URL?
I have our standard custom 404 which works well but I have too many 404 errors coming from Pinterest because there are pins coming from old information that is no longer on our site.
I know I could make redirects but that would almost impossible.
I know its a long shot.
Thank you in advance
Just curious but what would you want this to do?
Have you got one domain with many folders but some folders no longer exist?
If so, what would you want to do if anyone tries to access the missing folders?
Or do you just want to ignore all errors emanating from Pinterest?
Thank you for replying.
I just wanted to create a Custom 404 just for broken links that come from Pinterest.
All other 404's would land on my current 404 page.
Thanks
I too have very little knowledge of htaccess so I don't know if it's possible to have more that one 404 trap.
If you are familiar with php then there is a php variable $_SERVER['HTTP_REFERER'].
The server puts the referring url into this variable.
I think it will contain https://www.pinterest.com when a 404 comes from Pinterest.
//*** this is just a comment, if you have just one URL you can remove it together with the [NC,OR] from the first line
This htacces code rewrite all the incoming Links from Pinterest to the new URL on your domain.
[L,R=3020] -> you can use also [L,R=301]
If you want to rewrite just some URL's from Pinterest, than you must specify them explicitly: