svBK.vn
11-28-2011, 09:06 AM
I'm having trouble when I enable Pagination on CMS and Mod_rewrite.
When I click page 2, it links me to http://www.example.com/?page=2&pagenumber=2 and gives me the following browser error "The page isn't redirecting properly".
When I type in manually http://www.example.com/content/?page=2&pagenumber=2 or http://www.example.com/content/?page=2 it directs me to the correct page.
When I set Friendly URLs to standard, pagination works correctly. Clicking on page 2 directs me to http://www.example.com/?page=2 which works.
Demo: http://svbk.vn/?page=2&pagenumber=2
Here's my .htaccess file:
RewriteEngine on
# If you are having problems or are using VirtualDocumentRoot, uncomment this line and set it to your vBulletin directory.
# RewriteBase /forum/
# If you are having problems with the rewrite from content/ to content.php, uncomment this line to turn MultiViews off.
# Options -MultiViews
RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [NC,L]
# Forum
RewriteRule ^t/.* showthread.php [QSA]
RewriteRule ^f/.* forumdisplay.php [QSA]
RewriteRule ^u/.* member.php [QSA]
RewriteRule ^blogs/.* blog.php [QSA]
RewriteRule ^entries/.* entry.php [QSA]
RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [NC,L]
# MVC
RewriteRule ^(?:(.*?)(?:/|$))(.*|$)$ $1.php?r=$2 [QSA]
Any help is appreciated, thanks.
When I click page 2, it links me to http://www.example.com/?page=2&pagenumber=2 and gives me the following browser error "The page isn't redirecting properly".
When I type in manually http://www.example.com/content/?page=2&pagenumber=2 or http://www.example.com/content/?page=2 it directs me to the correct page.
When I set Friendly URLs to standard, pagination works correctly. Clicking on page 2 directs me to http://www.example.com/?page=2 which works.
Demo: http://svbk.vn/?page=2&pagenumber=2
Here's my .htaccess file:
RewriteEngine on
# If you are having problems or are using VirtualDocumentRoot, uncomment this line and set it to your vBulletin directory.
# RewriteBase /forum/
# If you are having problems with the rewrite from content/ to content.php, uncomment this line to turn MultiViews off.
# Options -MultiViews
RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [NC,L]
# Forum
RewriteRule ^t/.* showthread.php [QSA]
RewriteRule ^f/.* forumdisplay.php [QSA]
RewriteRule ^u/.* member.php [QSA]
RewriteRule ^blogs/.* blog.php [QSA]
RewriteRule ^entries/.* entry.php [QSA]
RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [NC,L]
# MVC
RewriteRule ^(?:(.*?)(?:/|$))(.*|$)$ $1.php?r=$2 [QSA]
Any help is appreciated, thanks.