timmy01 Posted July 30, 2006 Share Posted July 30, 2006 hi!Can i mod_rewrite and url of an image in a file?example:reall url:http://www.domain.com/images/2/200608011.jpgand with mod_rewrite it should look like this:http://www.domain.com/images/myphoto/holiday.jpgis this possible?And can Search engines still crawl this?RegardsTim Quote Link to comment https://forums.phpfreaks.com/topic/16005-mod_rewrite-images-search-engines/ Share on other sites More sharing options...
tomfmason Posted July 30, 2006 Share Posted July 30, 2006 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?[code]RewriteCond %{REQUEST_FILENAME} !-fRewriteCond %{REQUEST_FILENAME} !-dRewriteRule ^(.+)$ search.php?terms=$1 [L][/code] [code]domain.com/find -> domain.com/search.php?terms=find (if /find is not a directory)[/code]here are some useful links for mode rewrite[url=http://httpd.apache.org/docs-2.0/mod/mod_rewrite.html]http://httpd.apache.org/docs-2.0/mod/mod_rewrite.html[/url][url=http://www.ilovejackdaniels.com/apache/mod_rewrite-cheat-sheet/]http://www.ilovejackdaniels.com/apache/mod_rewrite-cheat-sheet/[/url]Now as far as search engine crawling, I have no ideaHope this helps,Tom Quote Link to comment https://forums.phpfreaks.com/topic/16005-mod_rewrite-images-search-engines/#findComment-65770 Share on other sites More sharing options...
timmy01 Posted July 30, 2006 Author Share Posted July 30, 2006 this is url /opening a page...and not what i am looking for.i should be about imagesthe <img src""> tag! Quote Link to comment https://forums.phpfreaks.com/topic/16005-mod_rewrite-images-search-engines/#findComment-66036 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.