Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > PHP/MySQL > Beginning PHP
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old January 27th, 2008, 12:32 AM
Registered User
 
Join Date: Jan 2008
Location: , , .
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
Reply With Quote
  #2 (permalink)  
Old January 27th, 2008, 08:40 PM
Registered User
 
Join Date: Jan 2008
Location: , , .
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
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 02:58 AM.


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