.htaccess - Redirect webpage of any name to another webpage with same name in a different folder -


let there 2 folders -> "abc" , "abc". if user accesses example.com/abc/file, want redirect him example.com/abc/file. surely done in .htaccess file. tried using rewriterule, cannot myself not quite used this(beginner ). easy. please me it. appreciated. regards, ben lind

add in htaccess file in document root:

rewriterule ^/?abc/(.*)$ /abc/$1 [l] 

make sure not use nc flag, ignores case.


Comments

Popular posts from this blog

image - ClassNotFoundException when add a prebuilt apk into system.img in android -

I need to import mysql 5.1 to 5.5? -

Java, Hibernate, MySQL - store UTC date-time -