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

android - net_scheduler holding wakelock -

sql - MySQL : Getting Entries from a many-to-many table -

java - Retrieving data from database using jsp (Hibernate + Spring + Maven) -