vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   CMS problems with URLs (https://vborg.vbsupport.ru/showthread.php?t=274770)

svBK.vn 11-28-2011 09:06 AM

CMS problems with URLs
 
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:

Code:

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?


All times are GMT. The time now is 09:04 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01035 seconds
  • Memory Usage 1,719KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete