php - Rewrite rule for a directory to redirect its parent directory in Apace2.conf file -


I need a rewrite rule in the Apace2.conf file so that it redirects the user, For example, when it enters a special directory, www.mywebsite.com/folder then it is www.mywebsite.com < P>

Enable mod_rewrite and .htaccess via httpd.conf and then enter this code in your DOCUMENT_ROOT directory under .htaccess :

  Options + Follow links Multi-View # Riwretbes / Riirret rules Ridraitanjin ^ (. *) $ / $ 1 [L, R = 301, NC]   

Comments

Popular posts from this blog

Java - Error: no suitable method found for add(int, java.lang.String) -

java - JPA TypedQuery: Parameter value element did not match expected type -

c++ - static template member variable has internal linkage but is not defined -