Skip to content

Instantly share code, notes, and snippets.

@Tjorriemorrie
Created March 7, 2014 08:17
Show Gist options
  • Save Tjorriemorrie/9407480 to your computer and use it in GitHub Desktop.
Save Tjorriemorrie/9407480 to your computer and use it in GitHub Desktop.
Symfony2 shared hosting htaccess
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /web
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ app.php [QSA,L]
</IfModule>
@azazqadir
Copy link

Stay away from shared hosting if you want to have good performance and security. I would rather suggest you to try out vps or cloud, they are a better option since you get dedicated server that you can scale anytime. If you don't have sysadmin skills to setup these servers, you can use managed platform, like Cloudways Symfony hosting (https://www.cloudways.com/en/symfony-hosting.php ), that gets you pre-installed servers so you don't have to worry about server management or sysadmin.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment