Results 1 to 4 of 4
  1. #1
    Join Date
    Jan 2003
    Location
    Roanoke, VA, US
    Posts
    390

    mod rewrite, letting images through

    I have an htaccess file with the following--

    Code:
    RewriteEngine on
    RewriteBase /
    RewriteRule ^cart([a-z]*).* index.html [L]
    This is redirecting any request with the word "cart" to the index page, but, when it redirects none of the images on the page load. What can I add to my code so the images will load freely?

    Thanks in advance!

    Marty

  2. #2
    What do your img tags look like?

  3. #3
    Join Date
    Jan 2003
    Location
    Roanoke, VA, US
    Posts
    390
    Like this--

    Code:
    <img src="images/logo.gif" width="207" height="125" border="0">

  4. #4
    Join Date
    Aug 2005
    Location
    UK
    Posts
    654
    If the images DIR is in the root folder use a leading /, ie

    Code:
    <img src="/images/logo.gif" width="207" height="125" border="0">

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •