Page 1 of 1

.htacess how to config in xampp v5.6.3

PostPosted: 09. February 2015 11:06
by paravatee
Hi
I want redirect URL but I don't understand config file .htaccess on xampp v5.6.3
I'm very try and try but I don't know how to set in xampp
I search any web. but non work .
help me now! sstep by step to me!
Regrads,

Re: .htacess how to config in xampp v5.6.3

PostPosted: 09. February 2015 15:20
by Nobbie
There is no difference in .htaccess for Xampp or any other Apache installation. Any tutorial about Rewrite will work for you. Use Google in order to find goog tutorials.

Re: .htacess how to config in xampp v5.6.3

PostPosted: 10. February 2015 03:07
by paravatee
please help me now! I beginner on this. please help me how to deploy file .htaccess to xampp.

I search google but can't config .htacess
please review and help me now!

Step 1. change value C:\xampp\apache\conf\httpd.conf
(#LoadModule rewrite_module modules/mod_rewrite.so -> LoadModule rewrite_module modules/mod_rewrite.so)
*Restart xampp
Step 2. open notepad create
RewriteEngine On
RewriteRule ^\.html$ /LAB/01/nusoap/android2.php [L]
save file .htaccess
step 3: deploy .htaccess to C:\xampp\htdocs\
*Restart xampp
step 4: run http://localhost/LAB/01/nusoap/android2.php but not redirect http://localhost/LAB/01/nusoap/android2.php to http://localhost/LAB/01/nusoap/android2/
What 's happend? why .htaccess doesn't redirect in this?

Re: .htacess how to config in xampp v5.6.3

PostPosted: 10. February 2015 12:33
by Nobbie
paravatee wrote:RewriteRule ^\.html$ /LAB/01/nusoap/android2.php [L]


This is surely an invalid Rule, because "^\.html$" matches only one filename ".html" (no filename, only extension .html).

I cannot give you a step by step explanation, we all once were beginners, you have to read documentation and tutorials and to learn it yourself. A forum is not a replacement for documentation. It will take you some time of course.

Re: .htacess how to config in xampp v5.6.3

PostPosted: 11. February 2015 09:55
by paravatee
very thank you !
I can config .htacess completely
Thank you for help me slove problem :D