Jump to content


Photo

mod_rewrite images + Search engines


  • Please log in to reply
2 replies to this topic

#1 timmy01

timmy01
  • Members
  • Pip
  • Newbie
  • 7 posts

Posted 30 July 2006 - 08:42 AM

hi!

Can i mod_rewrite and url of an image in a file?
example:

reall url:
http://www.domain.co...2/200608011.jpg

and with mod_rewrite it should look like this:
http://www.domain.co...oto/holiday.jpg

is this possible?
And can Search engines still crawl this?

Regards
Tim


#2 tomfmason

tomfmason
  • Staff Alumni
  • Advanced Member
  • 1,696 posts
  • Locationstealing your wifi

Posted 30 July 2006 - 09:07 AM

This would be better suited for the apache forum.

I am  sure  this is possible but I have never used mode rewrite for a specific file other than this one case.

This is what I use for a search script. Maybe you can use this?

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.+)$ search.php?terms=$1 [L]

domain.com/find -> domain.com/search.php?terms=find (if /find is not a directory)

here are some useful links for mode rewrite
http://httpd.apache....od_rewrite.html

http://www.ilovejack...te-cheat-sheet/


Now as far as search engine crawling, I have no idea

Hope this helps,
Tom

Traveling East in search of instruction, and West to propagate the knowledge I have had gained.

current projects: pokersource

My Blog | My Pastebin | PHP Validation class | Backtrack linux


#3 timmy01

timmy01
  • Members
  • Pip
  • Newbie
  • 7 posts

Posted 30 July 2006 - 05:50 PM

this is url  /opening a page...
and not what i am looking for.
i should be about images

the <img src""> tag!






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users