How to make a JavaScript or PHP conditionally redirect? -


मूल रूप से पेज यूआरएल के माध्यम से varaibles प्राप्त करता है http://sitename.com?c1=xxx&c2=yyy

यदि मैं c1 से कम 40 से कम है और एक मुख्य लिंक पर जाना चाहता हूं, तो मैं एक लिंक पर पुनः पुनर्निर्देशित करना चाहता हूं।

मैं इस तरह से कुछ कैसे काम कर सकता हूँ?

आप उपयोग php का उपयोग < पूर्व> हैडर ("स्थान: theurltoredirectto.com");

जावास्क्रिप्ट समाधान होगा

  window.location = "http://www.theurltoredirectto.com/"    

Comments

Popular posts from this blog

php - Creating canonical URLs with custom route-classes -

Mysql Local server hardware -

mysql - Formatting problem with PHP DateTime Difference when used as part of an equation -