You are here: Re: mod_rewrite problem « All PHP « IT news, forums, messages
Re: mod_rewrite problem

Posted by Jerry Stuckle on 08/30/07 10:32

luigi7up wrote:
> 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
>

The problem is you're asking Apache configuration questions in a PHP
newsgroup.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация