Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    Feb 2012
    Posts
    31
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Favicon and .htaccess

    This script in .htaccess works only if I have favicon.ico in the root.
    Code:
    AddType image/x-icon .ico
    RewriteRule ^favicon.ico favicon.ico [NC,L]
    I want to put favicon.ico in the directory IMAGES

    How could I change .htaccess?
    Thank you!

  • #2
    New Coder
    Join Date
    Apr 2014
    Location
    Daytona Beach, FL
    Posts
    44
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Im not to sure what you want but it seems like you just dont know how to use htaccess at all. It sounds like what you want is:

    Code:
    AddType image/x-icon .ico
    RewriteRule ^favicon.ico %{DOCUMET_ROOT}/IMAGES/favicon.ico [NC,L]
    You should be able to use the image like this: (The actual file would be inside your IMAGES directory)
    http://www.mysite/favicon.ico


  •  

    Posting Permissions

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