- Code: Select all
Redirect /directory/file.htm http://localhost/mydomain/index.htm
Is this not possible on Windows XAMPP 1.74 or am I doing something wrong?
Other aspects of htaccess such as Indexes and Files Match are working okay.
Thanks.
Redirect /directory/file.htm http://localhost/mydomain/index.htm
RewriteEngine On
RewriteRule ^file\.htm$ http://localhost/mydomain/index.htm [R=301]
.All paths would need to be in a defined DocumentRoot of Apache so the server knows where to look
Redirect permanent /directory/file.htm http://localhost/mydomain/index.htm
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
RewriteEngine on
Rewritecond %{http_host} ^mysite.com [NC]
Rewriterule ^(.*)$ http://www.mysite.com/index.html$1 [R=301,NC]
The / slash in xampp indicates to Apache that the directory is in the htdocs folder (DocumentRoot).
Users browsing this forum: No registered users and 108 guests