php - Xampp Virtual Host for sub directory -


question

i map

www.mydomain.com/some/url 

to

c:/xampp/htdocs/some/dir 

what i've got

  • xampp
  • wordpress

htaccess

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

hosts file

127.0.0.1 www.mydomain.com 

httpd-vhosts.conf (included in httpd.conf)

<virtualhost *:80>     documentroot "c:/xampp/htdocs/somedir/"     servername mydomain.com/some/path </virtualhost> 

additional info (httpd.conf)

documentroot "c:/xampp/htdocs"  <directory "c:/xampp/htdocs">     options indexes followsymlinks includes execcgi     allowoverride     require granted </directory> 

current outcome

500 internal server error error log shows

request exceeded limit of 10 internal redirects due probable configuration error.  

add alias httpd.conf

documentroot "c:/xampp/htdocs"  <directory "c:/xampp/htdocs">     options indexes followsymlinks includes execcgi     allowoverride     require granted </directory>  alias /some/url c:/xampp/htdocs/some/dir 

Comments

Popular posts from this blog

java - Intellij Synchronizing output directories .. -

git - Initial Commit: "fatal: could not create leading directories of ..." -