Can I convert add_rewrite_rules to .htaccess file
-
Hi,
It will be easy for me if I convert add_rewrite_rules to .htaccess file. Is it possible?
in my .htaccess file contains:<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /quatro/
RewriteRule ^insight/([^/]+)/categories/([^/]+)/?$ index.php?category_name=$2&post_type=insight [NC,L]
RewriteRule ^index\.php$ – [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /quatro/index.php [L]
</IfModule>here I add
RewriteRule ^insight/([^/]+)/categories/([^/]+)/?$ index.php?category_name=$2&post_type=insight [NC,L]
as alternet of
add_rewrite_rule(
“insight/([^/]+)/categories/([^/]+)/?$”,
‘index.php?category_name=$matches[2]&post_type=insight’,
“top”);
But not work me. Please help.
N.B. add_rewrite_rule work fine for me but I need to put it in to .htaccess file.Thanks
Joydeep
- The topic ‘Can I convert add_rewrite_rules to .htaccess file’ is closed to new replies.