php - How to properly redirect all files inside directory with .htaccess? -


i have 2 questions.

  1. how redirect domain.com/ipc/ domain.com/category/indexpage/? also, happens http or https version , www or non www version? redirected without problem?

  2. let's want redirect domain.com/ipc/page domain.com/category/indexpage/page? mean webpages inside directory redirected properly? possible .htaccess redirection?

thanks.

you can use mod_alias simple redirect inside .htaccess file.

redirectmatch 301 ^/ipc/(.*)$ /category/indexpage/$1 

also has no baring on whether called http(s) or www/non www. handles redirect regardless.


Comments

Popular posts from this blog

java - pagination of xlsx file to XSSFworkbook using apache POI -

Unlimited choices in BASH case statement -

apache - How do I stop my index.php being run twice for every user -