Page 1 of 1

Rewrite URL Xampp

PostPosted: 06. March 2016 11:04
by mivex
Hi to all,
I ask help to configure Rewrite URL in xampp. I've already confiure:

"apache/conf/httpd.conf" changed the following:

"#LoadModule rewrite_module modules/mod_rewrite.so"
to
"LoadModule rewrite_module modules/mod_rewrite.so"

AND

"AllowOverride None"
to
"AllowOverride All"


Later I configure the .htaccess file in my root in order to change the link contains the reserver parameters... For Example I have the original link:

http://test.domain.net:7506/testlab/#/client/x/33/?username=mouse&password=mouse

in the .htaccess i put

RewriteEngine On
RewriteRule ^([^/]*)/([^/]*)\.html$ :7506/testlab/#/client/x/33/?username=$1&password=$2 [L]

Restarted Apache service but it does not work, I see ever the original link "http://test.domain.net:7506/testlab/#/client/x/33/?username=mouse&password=mouse" and not the rewrited one.
*Probably I put wrong rewrite url because I'm not expert, I use automatic rewrite url tool: http://www.generateit.net/mod-rewrite/index.php

Can you help me?
Thanks

Re: Rewrite URL Xampp

PostPosted: 06. March 2016 11:40
by Nobbie
mivex wrote:RewriteRule ^([^/]*)/([^/]*)\.html$ :7506/testlab/#/client/x/33/?username=$1&password=$2 [L]


This pattern "^([^/]*)/([^/]*)\.html$" does not match your link "http://test.domain.net:7506/testlab/#/client/x/33/?username=mouse&password=mouse", as you easily see, there is no ".html" in the end of your link (but in the pattern you put .html to the end).

Whatever you try to achieve, this pattern does not hit your link.

Re: Rewrite URL Xampp

PostPosted: 06. March 2016 16:50
by mivex
In fact, I said that I don't know very weel how to use the rewrite url.
I used http://www.generateit.net/mod-rewrite/index.php tool to translate my original link.

Could you help me to translate my url with regular expression that match correcty?

thanks

Re: Rewrite URL Xampp

PostPosted: 06. March 2016 22:05
by Nobbie
Honestly, i have no ideal what you try to achieve. Your description totally lacks what you are aiming at.