[Solved] How to Hide parameters in URL in Symfony2

As explained in comments, the request needs something to identify the resource you want to fetch. But this has nothing to do with URL rewriting. If you want to display the slug of the resource instead of the id, do the following : my_route: path: /products/{slug} defaults: { _controller: MyBundle:Default:myaction} Then, in MyBundle/Controller/DefaultController.php : public … Read more

[Solved] Awstats tool : issue with missing icons and histogram bars on main page of Awstats – probably an issue of path defined into Apache

Your current config prevents proxying for /cgi-bin/ with the RewriteCond here: RewriteCond %{REQUEST_URI} !^/cgi-bin/(search|awstats) [NC] RewriteRule ^/(.*) https://localhost:8443/++vh++https:%{SERVER_NAME}:443/++/$1 [P,L] You need also short-circuit for /awstats* so they aren’t proxied to that zope nonsense. Multiple conditions are AND’ed by default so it’s easy: RewriteCond %{REQUEST_URI} !^/awstats [NC] RewriteCond %{REQUEST_URI} !^/cgi-bin/(search|awstats) [NC] RewriteRule ^/(.*) https://localhost:8443/++vh++https:%{SERVER_NAME}:443/++/$1 [P,L] 0 … Read more

[Solved] Rewrite .htaccess for https

You’re currently redirecting only when the HTTPS flag is ON, which is obviously, not what you want. Options -MultiViews RewriteEngine On RewriteCond %{HTTPS} off [NC] RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [R,L] RewriteRule ^(index|getReadings|admin|adminNewDesign)/([a-z]*)$ https://%{HTTP_HOST}/$1.php?id=$2 [L,QSA,NC] 3 solved Rewrite .htaccess for https