Move rewrite rule to functions.php
-
I’d like to move my .htaccess rewrite rule to my functions.php, but I’m having trouble doing so. Thanks.
RewriteEngine On #RewriteRule ^photos/gallery/image/([^/]*)/$ /wp-content/themes/ior/page-gallery-image.php?i=$1 [L] #RewriteRule ^photos/gallery/([^/]*)/([^/]*)/([^/]*)/$ /wp-content/themes/ior/page-galleria.php?n=$1&i=$2&c=$3 [L] #RewriteRule ^photos/gallery/([^/]*)/([^/]*)/([^/]*)/$ index.php?pagename=photos/gallery&n=$1&i=$2&c=$3 [L]
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Move rewrite rule to functions.php’ is closed to new replies.