Antispam ACP and SEO rewrite

phpBB3 SEO Advanced mod Rewrite support forum.
This mods performs URL rewriting for phpBB, injecting forums and topic titles in their URLs.

Moderator: Moderators

Antispam ACP and SEO rewrite

Postby GoBieN » Wed Feb 06, 2013 8:48 pm

Hello,

I have the latest SEO premod and recently I installed Exreaction Anti-spam ACP.

There is one slight compatibility problem, when I want to flag a user they use a confirm_box() function that displays a confirm question with yes/no.
When pressing yes on this box I get a 404 error page because www.camino-tuning.be/antispam/index.php can't be found. My phpBB resides inside phpBB3 subfolder but I use virtual root. I then added a rewrite rule in htaccess to redict /antispam to /phpBB3/antispam
Code: Select all
# Antispam met phpbb-seo probleem
RewriteRule ^antispam/(.*)$ /phpBB3/antispam/$1 [R=301,L]

This fixed the 404 error problem but the action does not occur instead I get redirected back to the profile page. Maybe me rewriterule strips the POST or GET variables. Not sure.

But I would like to fix this so no rewrite rule is needed and it works.

I presume it has something to do with the fact that Anti-spam ACP uses it's own subdirectory "antispam" and the file index.php inside it.

Any advice?

Thanks
GoBieN
PR1
PR1
 
Posts: 124
Joined: Mon Mar 10, 2008 7:12 pm
Location: Belgium

Advertisement

Re: Antispam ACP and SEO rewrite

Postby HB » Wed Feb 06, 2013 10:10 pm

Why do you have R=301 specified? And is QSA missing? I think you want to map it without sending a redirect back to the browser, i.e., [QSA,L,NC]

http://httpd.apache.org/docs/current/rewrite/flags.html

QSA|qsappend

When the replacement URI contains a query string, the default behavior of RewriteRule is to discard the existing query string, and replace it with the newly generated one. Using the [QSA] flag causes the query strings to be combined.

Consider the following rule:

RewriteRule /pages/(.+) /page.php?page=$1 [QSA]
With the [QSA] flag, a request for /pages/123?one=two will be mapped to /page.php?page=123&one=two. Without the [QSA] flag, that same request will be mapped to /page.php?page=123 - that is, the existing query string will be discarded.

L=last rule, NC=no case sensitivity.
Dan Kehn
HB
phpBB SEO Team
phpBB SEO Team
 
Posts: 1519
Joined: Mon Oct 16, 2006 2:25 am

Re: Antispam ACP and SEO rewrite

Postby GoBieN » Wed Feb 06, 2013 10:25 pm

Thank you,

using [QSA,L,NC] does the trick!
GoBieN
PR1
PR1
 
Posts: 124
Joined: Mon Mar 10, 2008 7:12 pm
Location: Belgium


Return to Advanced SEO URL

 


  • Related topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: Alexa [Bot] and 3 guests