The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Mod Rewrite Friendly URLs and Apache 1.3
Does anyone have the Mod Rewrite Friendly URLs working in combination with Apache 1.3?
I tried using the .htaccess as provided in the /do_not_upload/rewrite/apache2 folder. These rules don't seem to work with Apache 1.3 In my error log the following error shows up... .htaccess: RewriteRule: cannot compile regular expression '^(?.*?)(?:/|$))(.*|$)$'\n Code:
RewriteEngine on # If you are having problems or are using VirtualDocumentRoot, uncomment this line and set it to your vBulletin directory. # RewriteBase /forum/ RewriteCond %{REQUEST_FILENAME} -s [OR] RewriteCond %{REQUEST_FILENAME} -l [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^.*$ - [NC,L] # Forum RewriteRule ^threads/.* showthread.php [QSA] RewriteRule ^forums/.* forumdisplay.php [QSA] RewriteRule ^members/.* 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] |
#2
|
|||
|
|||
i use this one but it doesn't rewrite it the way it did on 3.8
http://www.vbulletin.com/forum/showt...taccess/page12 |
#3
|
|||
|
|||
Do you use that one with Apache 1.3?
It gives me a similair problem... RewriteRule: cannot compile regular expression '^threads/([0-9]+)(?:/?$|(?:-[^/]+))(?:/?$|(?:/page([0-9]+)?))'\n |
#4
|
|||
|
|||
Is there any chance of upgrading your Apache to 2.x?
|
#5
|
|||
|
|||
Upgrading to Apache 2.x is no really possible at the moment. Maybe in a later stage.
For now I have found some information on http://www.vbsupport.org/forum/showthread.php?t=32958. Its in Russian, with Google translate I found out a little bit more... Quote:
Code:
RewriteEngine On # If you are having problems or are using VirtualDocumentRoot, uncomment this line and set it to your vBulletin directory. # RewriteBase /forum/ RewriteCond %{REQUEST_FILENAME} -s [OR] RewriteCond %{REQUEST_FILENAME} -l [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^.*$ - [NC,L] RewriteRule ^threads/.* showthread.php [QSA] RewriteRule ^forums/.* forumdisplay.php [QSA] RewriteRule ^members/.* member.php [QSA] RewriteRule ^blogs/.* blog.php [QSA] ReWriteRule ^entries/.* entry.php [QSA] RewriteRule ^list/([^/]*/)([0-9]+) list.php?r=$1$2&%{QUERY_STRING} RewriteRule ^content/(.*) content.php?r=$1&%{QUERY_STRING} RewriteRule ^widget/config/([0-9]+) widget.php?r=config/$1&%{QUERY_STRING} RewriteCond %{REQUEST_FILENAME} -s [OR] RewriteCond %{REQUEST_FILENAME} -l [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^.*$ - [NC,L] RewriteRule ^$ $1.php?r=$2 [QSA] |
#6
|
|||
|
|||
Thanks! For that last .htaccess
I tried it and it works Been searching like crazy for that and was about to give up. |
#7
|
|||
|
|||
Works for me thanks!
|
#8
|
|||
|
|||
Quote:
Code:
RewriteRule ^list/([^/]*/)([0-9]+) list.php?r=$1$2 [QSA] RewriteRule ^content/(.*) content.php?r=$1 [QSA] RewriteRule ^widget/config/([0-9]+) widget.php?r=config/$1 [QSA] This line can't work - $1 and $2 are references to bracketed expressions - but there are none... The original line for Apache 2 is Code:
RewriteRule ^(?:(.*?)(?:/|$))(.*|$)$ $1.php?r=$2 [QSA] Code:
RewriteRule ^((.*?)(/|$))(.*|$)$ $2.php?r=$4 [QSA] Cheers, Jan |
#9
|
|||
|
|||
Anyone can answer the above question?
|
#10
|
|||
|
|||
hello,
Work well for me but i have a question : http://www.***.com/content/13-test 13 : number of article Test : title of article How to delete in .htaccess the number of article ? or better is it possible to change the number of article in title of the section ? |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|