![]() |
#1 |
Registered User
Join Date: Mar 2011
Posts: 267
|
Link Error Checking
Is there a way to check to see if a link comes up with an error and if so then load an alternate link?
For example, say I have a link to a file on another server, if that link is down, can it then load the alternate link? |
![]() |
![]() |
![]() |
#3 |
Registered User
Join Date: Jul 2014
Posts: 40
|
|
![]() |
![]() |
![]() |
#4 |
Registered User
Join Date: Oct 2014
Location: Los Angeles
Posts: 11
|
You would need to write the code in php to download the header for the webpage, then if it returns a "not found" (404?) error message, have your php script spit out the alternate link. This will be very slow. You may not want to do it. I'd look for an alternative unless this is really low-volume e.g. for your personal use.
|
![]() |
![]() |
![]() |
#5 |
Registered User
Join Date: Oct 2014
Posts: 1,401
|
You would need to write the code in php to download the header for the webpage, then if it returns a "not found" (404?) error message.
__________________
RO Plant | RO Water Filter | RO Membranes | Water Vending Machine | RO Spare Parts | Water Treatment Plant | Toray Membrane |
![]() |
![]() |
![]() |
#6 |
Registered User
Join Date: Aug 2014
Location: Surat
Posts: 847
|
thanks for the links
__________________
I am SEO expert and handling SEO for following words led tube light India, Send cakes Surat, Send Flowers cakes Surat, Led Tube Light Suratsend flowers to surat Buy cakes in Surat Buy flowers in surat Send ONLINE CAKES FLOWERS SURAT |
![]() |
![]() |
![]() |
#7 |
Registered User
Join Date: Oct 2014
Posts: 1
|
hi
please use fopen command to check 404 link
__________________
|
![]() |
![]() |
![]() |
#8 |
Registered User
Join Date: Jun 2014
Location: United Kingdom
Posts: 120
|
Yeah you can use the fopen command to check link error.
|
![]() |
![]() |
![]() |
#9 |
Registered User
Join Date: Nov 2014
Posts: 3
|
May be none
|
![]() |
![]() |
![]() |
#10 |
Registered User
Join Date: Jul 2015
Posts: 7
|
use online back link checker tools and solve your issues
|
![]() |
![]() |
![]() |
#11 |
Registered User
Join Date: Aug 2015
Location: dhaka
Posts: 19
|
![]()
You can use different tools like w3cvalidator, link checker, etc to fix your link error.
|
![]() |
![]() |
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|