mod_rewrite problem
- From: luigi7up <luigi7up@xxxxxxxxx>
- Date: Thu, 30 Aug 2007 03:32:04 -0700
Hello everyone,
Im havin' problem with images in pages that were mod_rewrite-n.
So,
/blog/3/
is rewritten into
index.php?kom=blog&id=3
in .htaccess with directives:
RewriteRule ^blog/$ index.php?kom=blog [L]
RewriteRule ^blog/(.*)/$ index.php?kom=blog&id=$1 [L]
but images that have relative path <img src='images/image.jpg' /> are
problem because server appends image path to virtual directory /blog/
3/:
/blog/3/images/image.jpg
where I want it to append that path to the root:
www.domain.com/images/image.jpg
I would like to solve this through .htaccess.
I tried solving this problem with entering apsolute paths to my images
but Im unable to put apsolute path because Im using TinyMCE .js editor
that resolves all absolute paths into relative ones..
Also using slash in front of path (/images/image.jpg) isn't solving my
problem.
I found RewriteRule that should solve my problem but it doesn't work.
Here it is:
RewriteCond %{REQUEST_URI} !\.(exe|jpg|jpeg)$
Maybe Im not using it right, I don't know but this problem gives
headache for quite some
time now.
Thank you in advance
Luka
.
- Prev by Date: Re: [PHP] Pragmatically changing a "Record Number"
- Next by Date: Re: Problem mysql_connect : True PB ?
- Previous by thread: Problem mysql_connect : True PB ?
- Next by thread: Compiling PHP 5.2.3
- Index(es):
Relevant Pages
|