Forum Moderators: phranque

Message Too Old, No Replies

phpBB2 - .htaccess - Need to exclude search.php

phpBB2

         

jesperfrier

8:52 am on Aug 6, 2008 (gmt 0)

10+ Year Member



Cannot find a solution to this problem. But maybe you can assist ... :-)

http://www.example.com/phpBB2/search.php?mode=results

... changes to (when clicking search) ...

http://www.example.com/phpBB2/search,mode,results.html

... preventing back button to be used in browser.

CAN THIS BE PREVENTED IN .HTACCESS? Thanks ...

This is my current .htaccess file:

Files config.php>
Deny from all
</Files>

RewriteEngine On

# SEO URL [mgutt]
RewriteRule !\.html$ - [L]
RewriteRule ^phpBB2/[a-z0-9-]+-([pt])([0-9]+)\.html$ /phpBB2/viewtopic.php?$1=$2 [L]
RewriteRule ^phpBB2/[a-z0-9-]+-f([0-9]+)\.html$ /phpBB2/viewforum.php?f=$1 [L]
RewriteRule ^phpBB2/[a-z0-9-]+-c([0-9]+)\.html$ /phpBB2/index.php?c=$1 [L]
RewriteRule ^phpBB2/[a-z0-9-]+-u([0-9]+)\.html$ /phpBB2/profile.php?mode=viewprofile&u=$1 [L]
RewriteRule ^phpBB2/([a-zA-Z0-9_]+),([^/,]+),([^/,]*)([^/]*\.html)$ phpBB2/$1$4?$2=$3 [QSA,N]
RewriteRule ^phpBB2/[a-z0-9-]+-([pt])([0-9]+),([^/,]+),([^/,]*)([^/]*\.html)$ phpBB2/viewtopic$5?$1=$2&$3=$4 [QSA,N]
RewriteRule ^phpBB2/[a-z0-9-]+-f([0-9]+),([^/,]+),([^/,]*)([^/]*\.html)$ phpBB2/viewforum$4?f=$1&$2=$3 [QSA,N]
RewriteRule ^phpBB2/([a-zA-Z0-9_]+)\.html$ /phpBB2/$1.php [L]

[edited by: jdMorgan at 3:03 pm (utc) on Aug. 6, 2008]
[edit reason] example.com [/edit]

jdMorgan

3:14 pm on Aug 6, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



None of these rules would apply to the requested URL /phpBB2/search.php (all require the requested URL to end with ".html"), and none of them are external redirects, so these rules would not change the URL you see in your browser's address bar. The problem is likely in the "SEO URL" plug-in code.

Jim