php - Permanent redirect to subfolder with .htaccess -


I am setting up Symfony2 project on a shared host and I'm getting some things I Symfony2 by default sending them Controller or main files (which is in many systems, inside the file index.php ) is the directory of the / web so that I can see all the project on shared hosting Public_ html will not work until I add the / web at the end to the URL. It is poor and noisy for users because they know the page for the domain. I follow the .htaccess :

  // 301 redirect complete directory redirect match 301 /(.*) / using the web / $ 1 // redirect I am trying to Prevent directory listing all-indexing  

Since hosting this is not working, this line is bad in the .htaccess file, so how can I ride this problem?

In root .htaccess you can use this mod_rewrite rule:

  // Prevent Directory Listing Options All-Indices Revive On RewriteExell ^ ((!! Web! ).*) $ / Web / $ 1 [L, NC, R = 301, NE ]  

Comments

Popular posts from this blog

HTML/CSS - Automatically set height width from background image? -

php - Mysql Show Process - Sleep Commands and what to do -

c - What is the address of buf (the local variable in the main function)? -