Wrox Programmer Forums
Go Back   Wrox Programmer Forums > PHP/MySQL > Beginning PHP
|
Beginning PHP Beginning-level PHP discussions. More advanced coders should post to the Pro PHP forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Beginning PHP 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 January 27th, 2008, 12:32 AM
Registered User
 
Join Date: Jan 2008
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default SEO with htaccess - images do not appear

Hi, I bought this book Professional SEO with php by Jaimie Sirovich and Cristian Darie..

I am doing the sample on chapter 14 about the e-commerce website with SEO - friendly.

IN summary, I am trying to create a keyword rich for the category page and following the book's sample to change my .htaccess file and add the mod_rewrite rules such as:

#Rewrite keyword rich URL for category pages
RewriteRule ^Products/.*-C{[0-9]+)/?$ index.php?category_id=$1&page-1 [L]

When I executed the page, it works ok and show index.php?category_id=1&page=1... however all images do not show and also my css! all images showed as broken link but printed the alt descriptions.

Please help as I do not know what's wrong with my htaccess or any other setup.. Thanks heaps
 
Old January 27th, 2008, 08:40 PM
Registered User
 
Join Date: Jan 2008
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I have fixed the problem..

What happened was, the htaccess works and in the url box it will show as "http://www.example.com/Products/images..." so I made a static link for all images instead of "img src="images/image1.gif"
then I make it "http://www.example.com/images/image1.gif" and it solves the problem.

Hope this helps someone with same problem... thanks





Similar Threads
Thread Thread Starter Forum Replies Last Post
SEO/Viewstate - fact or fiction?? jimibt BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 3 August 27th, 2007 11:43 AM
SEO and the beerhouse vantoko BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 12 August 6th, 2007 05:59 PM
ASP and SEO CurvyBabe Classic ASP Basics 11 August 22nd, 2006 06:33 PM
SEO and the use of XML, HTML, and a RDBMS CurvyBabe XML 0 August 18th, 2006 10:02 AM





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