[wp-hackers] Need help with gallery plugin implementation

Martin Fitzpatrick martin.fitzpatrick at gmail.com
Thu Mar 1 18:00:37 GMT 2007

On 01/03/07, Pierre-Luc Auclair <p.lucauclair at heliosmulti.com> wrote:
> <IfModule mod_rewrite.c>
> RewriteEngine On
> RewriteBase /plaplo/
> RewriteCond %{REQUEST_FILENAME} !-f
> RewriteCond %{REQUEST_FILENAME} !-d
> RewriteRule . /plaplo/index.php
> RewriteRule ^plaplo/portfolio/category/([A-Za-z0-9-]+)$ /plaplo/portfolio?catslug=$1 [L]
> </IfModule>
> This should turn
> /plaplo/portfolio/category/foobar
> into
> /plaplo/portfolio?catslug=foobar
> right?
> Can someone help me on this please.

I believe (and I may be completely wrong) that the problem is the
placing of the Rewrite rule. I believe that the rules are consecutive
- i.e. a rule at the bottom will be acting on the result of the rules

Try adding...

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /plaplo/
RewriteRule ^plaplo/portfolio/category/([A-Za-z0-9-]+)$
/plaplo/portfolio?catslug=$1 [L]

....into your .htaccess file *above* everything else.  If this works
the solution is simply to open .htaccess on plugin install and dump
this at the top of the file (read it in, output this, then output what
you read).  You may want to flag & check obviously with suitable
.htaccess comments.

If you need more help I'm happy to do so

Martin Fitzpatrick

More information about the wp-hackers mailing list