• 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

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Can I convert add_rewrite_rules to .htaccess file’ is closed to new replies.