Load folder on specific Wordpress URL(category URL) with .htaccess -
i'm trying load content(index.html) specific folder on specific(already used url) in wordpress.
here's .htaccess file(default):
# begin wordpress <ifmodule mod_rewrite.c> rewriteengine on rewritebase / rewriterule ^index\.php$ - [l] rewritecond %{request_filename} !-f rewritecond %{request_filename} !-d rewriterule . /index.php [l] </ifmodule> # end wordpress
i've tried few variations of rewrite rule:
rewriterule ^/category/funny-posts/ /funny-images/ [l]
so funny-images directory on server have wp installed. both of them in root folder.
how can load index.html /funny-images/ when type www.site.com/category/funny-posts/ ?
if index.html
file not displaying (and uri want being passed wp) it's because you're putting rule @ end. try putting after rewriteengine on
. oh, , don't think you'll need rewritebase
. also, don't need leading slash in new rule, before category
.
your file should this:
# begin wordpress <ifmodule mod_rewrite.c> rewriteengine on rewriterule ^category/funny-posts/ /funny-images/ [l] rewriterule ^index\.php$ - [l] rewritecond %{request_filename} !-f rewritecond %{request_filename} !-d rewriterule . /index.php [l] </ifmodule> # end wordpress
Comments
Post a Comment