Using the framework (1.1.15), is it possible to map this type of url - following Google guidance to index a single page application:
http;//somedomain.com/?_escaped_fragment=page/contact
Where page is my controller. The action is generic and in this case takes the contact value and retrieves that page from the database (this is not important to this discussion).
(My current route definition to handle this is
‘<controller:\w+>/<index:.*>’=>’<controller>/init’)
I’m not an expert on .htaccess - these are the rewrite rules I currently have in place
<IfModule mod_rewrite.c>
RewriteCond %{HTTPS} !=on
RewriteCond %{HTTP_HOST} ^www\.(.+)$ [NC]
RewriteRule ^ http://%1%{REQUEST_URI} [R=301,L]
RewriteCond %{SCRIPT_FILENAME} -f [OR]
RewriteCond %{SCRIPT_FILENAME} -d
RewriteRule .* - [L]
RewriteRule ^search/(.+)/([0-9]+)/?$ search/search?search=$1&page=$2 [QSA,L]
RewriteRule ^(.+)/([0-9]+)/?$ index.php?name=$1&page=$2 [QSA,L]
RewriteRule ^(.+)$ index.php?name=$1 [QSA,L]
</IfModule>
Any help much appreciated !