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

c# - passing input text from view to contoller with FacebookContext using Facebook app -

ios - Does Core Data autoupdate a many to many relationship on saving -

Calling a C++ function from C# by passing a string with variable size to it -