Redirect the URL using .htaccess -


i have page showing products hyperlink

 www.domainname.com/productname 

now client needs add store , needs url show

 www.domainname.com/store/productname 

i have done via code , when click on detail page, still redirecting

 www.domainname.com/productname 

but need

 www.domainname.com/store/productname 

tried this: rewriterule ^store/?$ domina.com/?$ [nc,l] in .htaccess file, not sure whether i'm on page

can 1 tell me how via .htaccess file.

thanks in advance.

try :

rewriterule ^store/(.*)/?$ http://domain.com/store/$1 [r,l,nc] 

Comments

Popular posts from this blog

android - How to save instance state of selected radiobutton on menu -

python 3 IndexError: list index out of range -

IF statement in MySQL trigger -