I got help. Here's the working code:
RewriteEngine on
RewriteCond %{QUERY_STRING} ^.+products_id=([0-9]+)$ [NC]
RewriteRule ^product_info\.php$ domain_here/product_info.php?products_id=%1 [R=301,L]
For higher education on mod_rewrite, I found the following pages helpful...
I have several pages that are dynamically generated, but lead to the same page. I.e.:
product_info.php?manufacturers_id=11&products_id=727
product_info.php?cPath=199_28_195&products_id=727
product_info.php?products_id=727
As far as I can tell, Search Engines will see this as duplicate content...
There's no error when it reads:
function tep_get_source_list($name, $selected = '', $parameters = '') {
"$show_other = false" has to be completely removed (removing "= false" alone doesn't help).
I just found this in the php.net's "PHP5 Backward Incompatible Changes" ( http://www.php.net/manual/en/migration5.incompatible.php )
"Illegal use of string offsets causes E_ERROR instead of E_WARNING.
An example illegal use is: $str = 'abc'; unset($str[0]);.
How can "$show_other = false" be...
Greetings,
I have an array to output a dropdown menu from a database that fails with the error "Cannot use string offset as an array". I'm using PHP 5 and I'm not sure how to change the function to be compatible.
Here's the string:
function tep_get_source_list($name, $show_other = false...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.