wordpress - .htaccess: How to not redirect /wpfiles directory to /main directory? -


i prepping site launch. i'm still learning how work .htaccess, , i'm having trouble. new wordpress site in /wpfiles directory. trying visit /wpfiles gets redirected /main. seems accessing index.php file in /wpfiles triggers rewrite rule below, accessing any other file or directory in /wpfiles doesn't.

i open /wpfiles directory able review site , send client. here existing .htaccess file public_html directory.

rewriteoptions inherit  rewriteengine on  indexignore .htaccess */.??* *~ *# */header* */readme* */_vti*  <limit post> order deny,allow deny allow </limit> <limit put delete> order deny,allow deny </limit> authname siteurl.com rewritecond %{http_host} ^.*$ rewriterule ^/?$ "http\:\/\/siteurl\.com\/main\/" [r=301,l] 

my /wpfiles .htaccess file follows:

# begin wordpress <ifmodule mod_rewrite.c> rewriteengine on rewritebase /wpfiles/ rewriterule ^index\.php$ - [l] rewritecond %{request_filename} !-f rewritecond %{request_filename} !-d rewriterule . /wpfiles/index.php [l] </ifmodule>  # end wordpress 

what might need adjust in order exempt /wpfiles/index.php rewrite rule?

thanks in advance help!


Comments

Post a Comment

Popular posts from this blog

filehandler - java open files not cleaned, even when the process is killed -

java - Suppress Jboss version details from HTTP error response -

Sass watch command compiles .scss files before full sftp upload -