Проблема cледующего характера: поставил VBSEO и vbGallery (VB 3.7.4). Форум установлен в корне сайта mysite.com, фотогалерея установлена mysite.com/gallery. Прописал в CRR следующее (нашел в старой теме):
//Gallery Rewrites
'index\.php\?c=(\d+).*$' => 'cat$1'
'browseimages\.php\?c=(\d+)$' => 'cat$1'
'browseimages\.php\?do=browseimages&c=(\d+)&page=(\d+)$' => 'cat$1-$2'
'browseimages\.php\?do=popimages$' => 'top.html'
'browseimages\.php\?do=popimages&orderby=views' => 'topviews.html'
'browseimages\.php\?do=popimages&orderby=rating' => 'toprated.html'
'browseimages\.php\?do=popimages&orderby=posts' => 'toppost.html'
'showimage\.php\?i=(\d+)&noignore=0&postid=(\d+)$' => 'image$1-$2'
'showimage\.php\?i=(\d+)&original=1.*$' => 'image$1-big'
'showimage\.php\?i=(\d+).*$' => 'image$1'
'/gallery/index\.php$' => '/gallery/'
Содержание .htaccess:
# Comment the following line (add '#' at the beginning)
# to disable mod_rewrite functions.
# Please note: you still need to disable the hack in
# the vBSEO control panel to stop url rewrites.
RewriteEngine On
# Some servers require the Rewritebase directive to be
# enabled (remove '#' at the beginning to activate)
# Please note: when enabled, you must include the path
# to your root vB folder (i.e. RewriteBase /forums/)
RewriteBase /
RewriteCond %{HTTP_HOST} !^www\.mysite\.com
RewriteRule (.*) http://www.mysite.com/$1 [L,R=301]
RewriteRule ^((urllist|sitemap_).*\.(xml|txt)(\.gz)?)$ vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1 [L]
RewriteCond %{REQUEST_URI} !(admincp/|modcp/|cron)
RewriteRule ^((archive/)?(.*\.php(/.*)?)?)$ vbseo.php [L,QSA]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !^(admincp|modcp|clientscript|cpstyles|images)/
RewriteRule ^(.+)$ vbseo.php [L,QSA]
Так вот, при заходе на главную страницу галереи все работатет нормально, т.е. ссылка, например, на изображение выглядит так:
http://www.mysite.com/gallery/image1, но как только заходишь в какую-то категорию все ссылки приобретают такой вид:
http://www.mysite.com/image1 тупо теряется полный путь, а именно выпадает gallery/. Не знаю что делать. Подскажите пожалуйста.
Вполне вероятно решение проблемы есть тут:
http://www.vbseo.com/f23/custom-rewr...ry-links-1011/
Заранее благодарен!