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

How can I add a seperate action listener to all 14 of my buttons at once that can determine player turn?(java) -

php - Sorting an multidimension array using usort fails -

Simple file compression in C -