Форумы / Cotonti / Support / url mod_rewrite page_add bug

question about page_add bug solving with mod_rewrite enabled

Trustmaster
#22847 12.02.2010 04:09
I can make a plugin to rewrite relative links in pages and posts, but it won't be recommended for sites which don't already have many of old-way urls in posts.

Added 17 minutes later:

I see the problem about your plugin now. It uses $out['uri']:
$area_location = substr($out['uri'], 0, strpos($out['uri'], '.'));
Which is incorrect, because $out['uri'] depends on exact way of URL output.
The more correct way to get current area is:
global $z;
$area_location = $z;
May the Source be with you!
Отредактировано: Trustmaster (12.02.2010 04:27, 15 лет назад)