Wrox Programmer Forums
|
BOOK: Professional Search Engine Optimization with PHP: A Dev's Guide to SEO ISBN: 978-0-470-10092-9
This is the forum to discuss the Wrox book Professional Search Engine Optimization with PHP: A Developer's Guide to SEO by Cristian Darie, Jaimie Sirovich; ISBN: 9780470100929
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional Search Engine Optimization with PHP: A Dev's Guide to SEO ISBN: 978-0-470-10092-9 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 19th, 2008, 03:44 PM
Registered User
 
Join Date: Jul 2008
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Ch3 Testing mod_rewrite

Hello,

First post in this forum. I'm in ch3 of this SEO book I typed the simple script
Code:
<?php
// display product details
echo ‘You have selected product #‘ . $_GET[‘product_id’];
?>
Then test it as the book said and got this error:

Notice: Undefined index: product_id in F:\vhosts\seophp\products.php on line 11
You have selected product #

Right, since I didn't define product_id how does this code will give me a query string as the book suggested?
The book said load

http://seophp.example.com/product.php?product_id=3

And if I do that of course I got a 404 not found page. Any idea?

 
Old September 8th, 2011, 11:48 AM
Friend of Wrox
 
Join Date: May 2011
Posts: 125
Thanks: 0
Thanked 24 Times in 24 Posts
Default

Greetings,

Change this: http://seophp.example.com/product.php?product_id=3 to match your local webserver installation. So, for example, if you are running the webserver on your local machine then using: http://localhost/product.php?product_id=3 should work.





Similar Threads
Thread Thread Starter Forum Replies Last Post
mod_rewrite stevenpup ASP.NET 2.0 Basics 2 December 22nd, 2007 05:54 PM
mod_rewrite question harpua Pro PHP 0 April 12th, 2007 08:56 PM
Mod_rewrite heerajee Pro PHP 1 March 8th, 2006 06:35 AM
mod_jk + apache + mod_rewrite fanch Apache Tomcat 0 December 5th, 2005 12:34 PM
Apache mod_rewrite() anshul Linux 2 October 14th, 2005 09:09 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.