You could try
- Code: Select all
Redirect permanent /directory/file.htm http://localhost/mydomain/index.htm
The / slash in xampp indicates to Apache that the directory is in the htdocs folder (
DocumentRoot).
Make sure that you use the correct case as most thing in XAMPP are case sensitive.
Here is a bunch I used on a web site to put the wind up would be form hackers
- Code: Select all
Redirect permanent /cgi-bin/formmail.pl http://www.vcu.edu/police/netcrime.html
Redirect permanent /cgi-bin/formmail.cgi http://www.vcu.edu/police/netcrime.html
Redirect permanent /cgi-bin/FormMail.pl http://www.vcu.edu/police/netcrime.html
Redirect permanent /cgi-bin/FormMail.cgi http://www.vcu.edu/police/netcrime.html
I use this on 2 web sites to do a 301 redirect for people who just type
http://mysite.com to
http://www.mysite.com which at one time helped with Google SEO.
- Code: Select all
RewriteEngine on
Rewritecond %{http_host} ^mysite.com [NC]
Rewriterule ^(.*)$ http://www.mysite.com/index.html$1 [R=301,NC]
Here are some links that might help you understand your redirect issue.
This is an on line .htaccess file generator:
http://www.htaccessredirect.net/Apache docs:
http://httpd.apache.org/docs/current/mo ... nce.html#RSome help perhaps from these
Google search resultsThis is a support forum for XAMPP and if your XAMPP installation is working as it should then really that's all we can do for you, the rest is up to you to research, read, experiment and learn.
Good luck and best wishes from someone with many years experience working on all aspects of a Windows platform.