| Author | Message |
| Post Title: mod_rewrite g2 y phpbb2 | |
tenoch
Joined: Mar 25, 2007 Posts: 10
|
Posted: Tue Mar 27, 2007 12:03 pm
Hi
I made some changes to .htaccess file, and activated the mod in admin, and it works. the original file was Code: ›
RewriteCond %{REQUEST_FILENAME} -f [OR] RewriteCond %{REQUEST_FILENAME} -d [OR] RewriteCond %{REQUEST_FILENAME} gallery\_remote2\.php RewriteCond %{REQUEST_URI} !/main\.php$ RewriteRule . - [L] RewriteCond %{THE_REQUEST} /d/([0-9]+)-([0-9]+)/([^/?]+)(\?.|\ .) RewriteCond %{REQUEST_URI} !/main\.php$ RewriteRule . /main.php?g2_view=core.DownloadItem&g2_itemId=%1&g2_serialNumber=%2&g2_fileName=%3 [QSA,L] RewriteCond %{THE_REQUEST} /v/([^?]+)(\?.|\ .) RewriteCond %{REQUEST_URI} !/main\.php$ RewriteRule . /main.php?g2_path=%1 [QSA,L] # The path to your Gallery (in this case example.com/gallery2/) RewriteBase /gallery2/ RewriteRule ^admin /gallery2/main.php?g2_view=core.SiteAdmin [QSA,L] So I changed "main" to gallery2", because my forum points to gallery2.php Code: ›
RewriteCond %{REQUEST_FILENAME} -f [OR] RewriteCond %{REQUEST_FILENAME} -d [OR] RewriteCond %{REQUEST_FILENAME} gallery\_remote2\.php RewriteCond %{REQUEST_URI} !/gallery2\.php$ RewriteRule . - [L] RewriteCond %{THE_REQUEST} /d/([0-9]+)-([0-9]+)/([^/?]+)(\?.|\ .) RewriteCond %{REQUEST_URI} !/gallery2\.php$ RewriteRule . /gallery2.php?g2_view=core.DownloadItem&g2_itemId=%1&g2_serialNumber=%2&g2_fileName=%3 [QSA,L] RewriteCond %{THE_REQUEST} /v/([^?]+)(\?.|\ .) RewriteCond %{REQUEST_URI} !/gallery2\.php$ RewriteRule . /gallery2.php?g2_path=%1 [QSA,L] # The path to your Gallery (in this case example.com/gallery2/) RewriteBase /gallery2/ RewriteRule ^admin /gallery2/main.php?g2_view=core.SiteAdmin [QSA,L] I uploaded this file to the root of my phpbb forum, the only question I have is about this line: RewriteCond %{REQUEST_FILENAME} gallery\_remote2\.php Because it says gallery and not gallery2, so I don't know if this could cause a problem Thanks |
| Author | Message |
| Post Title: Re: mod_rewrite g2 y phpbb2 | |
tenoch
Joined: Mar 25, 2007 Posts: 10
|
Posted: Tue Mar 27, 2007 5:59 pm
Well, I undone changes, because it caused conflicts with another mod in my phpbb forum, that shorten urls:
mod-seo_urls_v2.zip That mod, use another .htaccess file that have the following: Code: ›
RewriteEngine On #this may cause issues with subdirs and so I have not enabled it. RewriteBase / RewriteRule [.]*-vf([0-9]*) viewforum.php?%{QUERY_STRING}&f=$1 RewriteRule [.]*-vp([0-9]*) viewtopic.php?%{QUERY_STRING}&p=$1 RewriteRule [.]*-vt([0-9]*) viewtopic.php?%{QUERY_STRING}&t=$1 RewriteRule [.]*-vc([0-9]*) index.php?%{QUERY_STRING}&c=$1 RewriteRule [.]*-ac([0-9]*) album_cat.php?%{QUERY_STRING}&cat_id=$1 RewriteRule [.]*-at([0-9]*) album_thumbnail.php?%{QUERY_STRING}&pic_id=$1 RewriteRule [.]*-apic([0-9]*) album_pic.php?%{QUERY_STRING}&pic_id=$1 RewriteRule [.]*-apm([0-9]*) album_picm.php?%{QUERY_STRING}&pic_id=$1 RewriteRule [.]*-full-asp([0-9]*) album_showpage.php?full=&pic_id=$1 RewriteRule [.]*-asp([0-9]*) album_showpage.php?%{QUERY_STRING}&pic_id=$1 RewriteRule [.]*-aper([0-9]*) album_personal.php?%{QUERY_STRING}&user_id=$1 RewriteRule [.]*-dc([0-9]*) dload.php?%{QUERY_STRING}action=category&cat_id=$1 RewriteRule [.]*-df([0-9]*) dload.php?%{QUERY_STRING}action=file&file_id=$1 RewriteRule [.]*-kbc([0-9]*) kb.php?%{QUERY_STRING}mode=cat&cat=$1 RewriteRule [.]*-kba([0-9]*) kb.php?%{QUERY_STRING}mode=article&k=$1 RewriteRule [.]*-kbsmp kb.php?mode=stats&stats=mostpopular RewriteRule [.]*-kbstr kb.php?mode=stats&stats=toprated RewriteRule [.]*-kbsl kb.php?mode=stats&stats=latest RewriteRule [.]*-pbc([0-9]*) kb.php?%{QUERY_STRING}mode=cat&cat=$1 RewriteRule [.]*-pa([0-9]*) kb.php?%{QUERY_STRING}mode=article&k=$1 RewriteRule [.]*-psmp kb.php?mode=stats&stats=mostpopular RewriteRule [.]*-pstr kb.php?mode=stats&stats=toprated RewriteRule [.]*-pbsl kb.php?mode=stats&stats=latest |