PDA

View Full Version : CMS problems with URLs


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.

Lynne
11-28-2011, 05:03 PM
I moved this to it's own thread.

What version are you running? You should be using the .htaccess that was provided in the do_not_upload/rewrite directory. It was changed somewhere around version 4.1.7.

svBK.vn
11-29-2011, 01:35 AM
Thank you. I'm running version 4.1.3 and using the .htaccess in the do_not_upload/rewrite/apache/.htaccess but it's not working with Pagination on CMS :(

Lynne
11-29-2011, 02:52 AM
I do not have a 4.1.3 board any longer to be able to help with this, sorry. Perhaps you can upgrade?