.htaccess not load css file and images and duplicate parent url?

Posted by Mahran Elneel on Stack Overflow See other posts from Stack Overflow or by Mahran Elneel
Published on 2010-12-26T11:27:52Z Indexed on 2010/12/26 11:54 UTC
Read the original article Hit count: 204

Filed under:

i have create htaccess and cannot load css file and images but when add ../file.css and images ../ima it work but i want to open in current directory.

and when click the link in home page like will be

http://localhost/mysite/program/4

but in another page will add

http://localhost/mysite/program/program/2

and this wrong location

the .htaccess code

Options +FollowSymLinks
RewriteEngine On


# Turn on the rewriting engine  
RewriteRule ^program/([0-9]+)/?$ get_programs.php?pack_id=$1 [NC,L]
RewriteRule ^El-Mensajero/?$ home.php [NC,L]
RewriteRule ^Daily-Tours/?$ daily_tours.php [NC,L]
RewriteRule ^page/([0-9]+)/?$ get_pages.php?page_id=$1 [NC,L]

© Stack Overflow or respective owner

Related posts about .htaccess