.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

powershell Start-Process exit code -1073741502 when used with Credential from a windows service environment -

twig - Using Twigbridge in a Laravel 5.1 Package -

c# - LINQ join Entities from HashSet's, Join vs Dictionary vs HashSet performance -