Bug RewriteRule: cannot compile regular expression '^(.*\\.php(/.*)?))$'

Status
Not open for further replies.

Ryan Persad

Customer
After updating to php 5.6.18 i'm getting an 500 internal server error, when i checked the error logs its saying this

/public_html/.htaccess: RewriteRule: cannot compile regular expression '^(.*\\.php(/.*)?))$'

Please see if the rewrite needs to be updated.
 
Hi there,

I don't recognise that rewrite rule, are you sure it belongs to DBSEO? From what I can tell, it's not a part of the rewrite rules for DBSEO.
 
This is the entire rule set.

RewriteEngine on
# Set to vbulletin directory
RewriteBase /
#RewriteCond %{REQUEST_FILENAME} -s [OR]
#RewriteCond %{REQUEST_FILENAME} -l [OR]
#RewriteCond %{REQUEST_FILENAME} -d

#RewriteRule ^.*$ - [NC,L]

RewriteRule ^threads/.* showthread.php [L,QSA]
RewriteRule ^forums/.* forumdisplay.php [L,QSA]
RewriteRule ^members/.* member.php [L,QSA]
RewriteRule ^blogs/.* blog.php [L,QSA]
ReWriteRule ^entries/.* entry.php [L,QSA]
RewriteRule ^list/([^/]*/)([0-9]+) list.php?r=$1$2 [L,QSA]
RewriteRule ^content/(.*) content.php?r=$1 [L,QSA]
RewriteRule ^widget/config/([0-9]+) widget.php?r=config/$1 [L,QSA]

RewriteCond %{REQUEST_URI} !(admincp/|dbseocp/|modcp/|cron|mobiquo|forumrunner|api\.php|reviewpost/|classifieds/|photopost/)
RewriteRule ^((archive/)?(.*\.php(/.*)?))$ dbseo.php [L,QSA]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !/(admincp|dbseocp|modcp|clientscript|cpstyles|images|reviewpost|classifieds|photopost)/
RewriteRule ^(.+)$ dbseo.php [L,QSA]








this is the only line that contains '^(.*\\.php(/.*)?))$'

RewriteRule ^((archive/)?(.*\.php(/.*)?))$ dbseo.php [L,QSA]
 
The line RewriteRule ^((archive/)?(.*\.php(/.*)?))$ dbseo.php [L,QSA] does not contain ^(.*\\.php(/.*)?))$

Are you sure you have no other htaccess rules on your site, such as your forum being in a subdirectory of the main web root?
 
yes their is no other, i checked every where my forum is still showing the error. If i remove that line alone it works but the rewrite does not.
 
We use 2.4.18 and PHP 5.6.17 on this forum without issue. Can you try downgrading to 5.6.17?
 
Downgrading will not be possible, Alot more persons will be affected because they will upgrade their server. when i remove RewriteRule ^((archive/)?(.*\.php(/.*)?))$ dbseo.php [L,QSA]
Everything works except the Links by the latest new post, those links do not rewrite, but if you go in the sections and access the links it rewrites.
 
In that case I'll hope the bug gets fixed by PHP 5.6.19, since this issue doesn't appear to exist on PHP 5.6.17, and I can find nothing in the PHP changelog that indicates this is an intended change.
 
Hello Ryan Persad,

This ticket has now been closed with the status Won't Fix.

We hope your issue or question has been addressed to your satisfaction. If not, please feel free to re-open it by clicking this link.

If you have any further issues or questions, please feel free to start a new support ticket via the button at the top of every page.

Thank you!
 
Status
Not open for further replies.

Legacy DragonByte SEO

vBulletin 3.8.x vBulletin 4.x.x
Seller
DragonByte Technologies
Release date
Last update
Total downloads
7,169
Customer rating
5.00 star(s) 1 ratings
Back
Top