Results 1 to 4 of 4
  1. #1
    Join Date
    Sep 2006
    Location
    Evanston, Illinois.
    Posts
    2,361
    Tokens
    0

    Latest Awards:

    Default mod_rewrite breaking images

    For instance I have
    RewriteRule services services.php

    If I go to example.com/services the services.png image in images/top/services.png will (I'm guessing) try and fetch that page as the image, is there any quick work-a-round? I tried using a not ( ! ) pattern, but didn't understand the correct syntax to make it work.

    Appreciate help

    Charlie
    How could this hapen to meeeeeeeeeeeeeee?lol.

  2. #2
    Join Date
    Sep 2006
    Location
    Evanston, Illinois.
    Posts
    2,361
    Tokens
    0

    Latest Awards:

    Default

    Fixed - needed a carrot before (^), in order to force it to start with services ie

    example.com/services
    not
    example.com/images/services.png
    How could this hapen to meeeeeeeeeeeeeee?lol.

  3. #3
    Join Date
    Oct 2006
    Location
    Peterborough, UK
    Posts
    3,855
    Tokens
    216

    Latest Awards:

    Default

    The ^ is used as not in regex.


    visit my internet web site on the internet
    http://dong.engineer/
    it is just videos by bill wurtz videos you have been warned

  4. #4
    Join Date
    Sep 2006
    Location
    Evanston, Illinois.
    Posts
    2,361
    Tokens
    0

    Latest Awards:

    Default

    Quote Originally Posted by Jewish Bear View Post
    The ^ is used as not in regex.
    What are you smoking? The start of a string?
    How could this hapen to meeeeeeeeeeeeeee?lol.

Posting Permissions

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