Rewrite URL Xampp

Problems with the Windows version of XAMPP, questions, comments, and anything related.

Rewrite URL Xampp

Postby mivex » 06. March 2016 11:04

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
mivex
 
Posts: 2
Joined: 06. March 2016 10:53
Operating System: Win7

Re: Rewrite URL Xampp

Postby Nobbie » 06. March 2016 11:40

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.
Nobbie
 
Posts: 8783
Joined: 09. March 2008 13:04

Re: Rewrite URL Xampp

Postby mivex » 06. March 2016 16:50

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
mivex
 
Posts: 2
Joined: 06. March 2016 10:53
Operating System: Win7

Re: Rewrite URL Xampp

Postby Nobbie » 06. March 2016 22:05

Honestly, i have no ideal what you try to achieve. Your description totally lacks what you are aiming at.
Nobbie
 
Posts: 8783
Joined: 09. March 2008 13:04


Return to XAMPP for Windows

Who is online

Users browsing this forum: JJ_Tagy and 62 guests