.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
Post a Comment