Results 1 to 5 of 5

Thread: htaccess redirect gets rid of images

  1. #1
    Join Date
    Nov 2009
    Posts
    2

    Default htaccess redirect gets rid of images

    Trying to set up a temp redirect using htaccess but everytime I use the code, my redirect goes to the correct page, but no images are displayed, just content. The page does display css styling, but my background images are just gone.

    Here's my htaccess:

    # enable basic rewriting

    RewriteEngine On

    # temp redirect
    Options +FollowSymLinks
    RewriteCond %{REMOTE_ADDR} !^123\.456\.789\.0
    RewriteCond %{REQUEST_URI} !/default.html$ [NC]
    RewriteRule .* /default.html [R,L]


    When I take this out and just visit default.html directly, the page appears fine, all images in place. Any thoughts. Been working on this for hours and can't figure it out.

    Thanks
    Larkin

  2. #2
    Join Date
    Apr 2008
    Location
    Chasing the Holy Grail - Pacific Northwest
    Posts
    1,312

    Default

    Check for capitalization problems, especially if you are using Windows.

    In Linux the file Bg.jpg is not the same as bg.jpg. The same for folder names.
    Images is not the same as images.
    In the Hyperion universe, a farcaster is an instantaneous transportation device.
    Experience: The thing you get just after you need it.

  3. #3
    Join Date
    Nov 2009
    Posts
    2

    Default No dice

    Thanks Farcaster, no luck though. Double checked and changed some image names to all lower case, still no images.

  4. #4
    Join Date
    Apr 2008
    Location
    Chasing the Holy Grail - Pacific Northwest
    Posts
    1,312

    Default

    Check your private messages
    In the Hyperion universe, a farcaster is an instantaneous transportation device.
    Experience: The thing you get just after you need it.

  5. #5
    Join Date
    Jan 2008
    Location
    cardboard box
    Posts
    388

    Default

    Well, what your htaccess file says is redirect everything that isn't default.html to default.html. It's just redirecting your image links to the html file.
    Have you tried turning it off and on again?

Posting Permissions

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