.htaccess - Apache RewriteRule in virtual-host(Apache) -


i want rewrite following url:

http://www.example.com/bengaluru/cantonment

to

http://www.example.com/bengaluru/cantonment-hrbr/6238393

i wrote :

rewriteengine on rewriterule  `^(.*)/cantonment  $1/cantonment-hrbr/6238393 [r,l]` 

why isn't working?

try following:

rewriteengine on rewriterule ^bengaluru/cantonment/(.*)$ /bengaluru/cantonment-hrbr/6238393/$1 [r,l] 

Comments

Popular posts from this blog

user interface - How to replace the Python logo in a Tkinter-based Python GUI app? -

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -