Custom RewriteRules?
-
I’m trying to make a custom .htaccess rule, here is what I want to do:
<IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^/portfolio/([A-Za-z]+)$ /portfolio/$1/ [R] RewriteRule ^/portfolio/([A-Za-z]+)/$ /portfolio-filter/?filter=$1 RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule>
I’ve added line 4+5, but WordPress seems to be taking over with the 404 page? How can I achieve my custom re-direction?
- The topic ‘Custom RewriteRules?’ is closed to new replies.