skip to Main Content

URL variable/value doesn't get picked up by php

I have this code to create a new OrdID if no value for this variable exists: If ($OrdID=="") { $con = mysql_connect("localhost","xxx","xxx"); mysql_select_db("xxx_Order", $con); $query=mysql_query("Select Max(OrdID) FROM `Order`"); while($row=mysql_fetch_array($query)) { $OrdID= $row[0] + 1; } $sql = "INSERT INTO `xxx_Order`.`Order`…

VIEW QUESTION

Asp.net – Regex negative lookahead true then ignore rest of regex

I'm using the following IIS Rewrite Rule to block as many bots as possible. <rule name="BotBlock" stopProcessing="true"> <match url=".*" /> <conditions> <add input="{HTTP_USER_AGENT}" pattern="^$|b(?!.*googlebot.*b)w*(?:bot|crawl|spider)w*" /> </conditions> <action type="CustomResponse" statusCode="403" statusReason="Forbidden" statusDescription="Forbidden" /> </rule> The goal is to block all user…

VIEW QUESTION

Asp.net – IIS Rewrite Module exclude bots but allow GoogleBot

I'm using the following IIS Rewrite Rule to block as many bots as possible. <rule name="BotBlock" stopProcessing="true"> <match url=".*" /> <conditions> <add input="{HTTP_USER_AGENT}" pattern="^$|bot|crawl|spider" /> </conditions> <action type="CustomResponse" statusCode="403" statusReason="Forbidden" statusDescription="Forbidden" /> </rule> This rule blocks all requests with an…

VIEW QUESTION

WordPress – How to properly rewrite a post tag?

Suppose I have a post tag which have as term id 480, I'm trying to create a redirect using add_rewrite_rule, so far I did: function term_custom_redirect() { $referer_url = "en/tag/a-lange-sohne"; add_rewrite_rule( "^$referer_url/?$", 'index.php?p=' . 480, "top" ); flush_rewrite_rules(); } add_action('init',…

VIEW QUESTION
Back To Top
Search