.htaccess - htaccess Rewite code for specific pages -


i using rewrite rule in htaccess file:

rewriterule ^([\w/-]+)/?$ index.php?page_slug=$1 [l, qsa] 

how can redirect domain.com/online-shop/ domain.com/online-shop/home same way above?

you can have new rule specific page:

rewriterule ^(online-shop)/?$ /$1/home [l,nc,r=302]  rewritecond %{request_filename} !-d rewriterule ^((?!online-shop/)[\w/-]+)/?$ index.php?page_slug=$1 [l,qsa,nc] 

Comments

Popular posts from this blog

firemonkey - How do I make a beep sound in Android using Delphi and the API? -

twig - Using Twigbridge in a Laravel 5.1 Package -

jdbc - Not able to establish database connection in eclipse -