I have just installed xampp on a windows 7 os and downloaded my working web application into C:/xampp/htdocs/myweb
calling the website with localhost/myweb brings up the home page
try calling a specific page like localhost/myweb/about.html is redirected to localhost/xampp/
calling a specific page with localhost/myweb/index.php?include=about shows the correct page
I am suspecting the problem in the setup of apaches mode rewrite or virtual host.
Apache configuration in the above respect:
#LoadModule reqtimeout_module modules/mod_reqtimeout.so
LoadModule rewrite_module modules/mod_rewrite.so
#LoadModule sed_module modules/mod_sed.so
# Virtual hosts
Include conf/extra/httpd-vhosts.conf
<VirtualHost *:80>
DocumentRoot "C:\xampp\htdocs"
ServerName localhost
</VirtualHost>
<VirtualHost *:80>
DocumentRoot "C:\xampp\htdocs\myweb"
ServerName myweb
</VirtualHost>
Adding
<Directory "C:\xampp\htdocs\myweb">
AllowOverride all
require local granted
</Directory>
within the last VirtualHost as suggested in various posts stops Apache from starting.
The windows hosts file is modified as follows:
# localhost name resolution is handled within DNS itself.
127.0.0.1 localhost
127.0.0.1 myweb
::1 localhost
::1 myweb
127.0.0.1 localhost
127.0.0.1 myweb
Finally the .htaccess entry I am using:
RewriteEngine on
RewriteCond %{REQUEST_URI} /(.*).html
RewriteRule (.*) /index.php?include=%1
I am sure I missed something somewhere in the changes been made in the newer versions of php and apache. It would be great if some body could point me in the right direction