.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

java - BeanIO write annotated class to fixedlength -

Using Java 8 lambdas/transformations to combine and flatten two Maps -

How to connect android app to App engine -