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

Apache – 301 redirect to modified url from .htaccess

How to make redirect 301 from ulr: https://domen.com/some-word/* to https://domen.com/products/some-word/* using .htaccess make 301 redirect from one url to another RewriteEngine on # RewriteCond %{ENV:HTTPS} !on # RewriteRule ^.*$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] how i can to resolve this problem?

VIEW QUESTION
Back To Top
Search