php - Let htaccess to point static resources to a subfolder -


i have put (wordpress) site wpsite.com in folder mysite (instead of root). here's .htaccess file (on root) forward mysite related requests folder mysite.

 # begin wordpress <ifmodule mod_rewrite.c> rewriteengine on rewritebase /   ### missite.com rules here (just simple rules) ###  rewritecond %{request_filename} !-f rewritecond %{request_filename} !-d rewriterule . /mysite/index.php [l] </ifmodule> # end wordpress 

problem is, there's site (missite.com) @ root. according rules above, requests like: mysite.com/a-wp-page/ work good. not:

  • mysite.com - loads index.php of site @ root.
  • mysite.com/wp-content/themes/twenty11/style.css - static resources, nothing index.php. these won't redirected unless ruled separately.

how can solve both above issues?


Comments