Click to See Complete Forum and Search --> : Htaccess help


deep-wood
01-05-2008, 01:08 AM
Hi all.

Im currently re-writing my urls to make them more search engine friendly. This is all going great.

However - the problem lies with my images and javascript.

Example:

old url: mode=recipes
new url: /recipes/

On the old url, my images would point to /images/

On the new, the point to /recipes/images/

I have a lot of images and would take a lot of time to put the url into all the src's, is there a way i can redirect the /recipes/images/ to just /images/ so the broken links will be fixed?

Many thanks

bigajosep
04-24-2008, 11:34 AM
are you using mod-rewrite or redirect ? you can use regular expressions with both

bigajosep
04-26-2008, 11:48 PM
i found a book on amazon called something like search engine optimization with php that looks like it would help