.htaccess - Htaccess rewriting to root folder with parameters from sub directory -


i having parameters in url.

 https://www.example.com/subdirectory/reset-password/123/123  

i want https://www.example.com/reset-password/123/123

where first 123 first parameter , second parameter 123

i making rule below link: want be

https://www.example.com/subdirectory/reset-password?p=123&q=123 

to

i want `https://www.example.com/reset-password/123/123`  

i using following link reference hide folder name particular url using .htaccess

use this:

rewriteengine on rewriterule ^reset-password/([^/]*)/([^/]*)$ /subdirectory/reset-password?p=$1&q=$2 [l] 

it give following url:

https://www.example.com/reset-password/123/123


Comments

Popular posts from this blog

Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12:test (default-test) on project.Error occurred in starting fork -

windows - Debug iNetMgr.exe unhandle exception System.Management.Automation.CmdletInvocationException -

configurationsection - activeMq-5.13.3 setup configurations for wildfly 10.0.0 -