htaccess url rewriting not working
Permalink
Hello Team,
I have updated my website from concrete5 - 5.6.3.5 to concrete5 - 8.4.4. I have created packages and blocks from scratch as per new syntax of concrete5 - 8.4.4. Everything is working fine except one issue of .htaccess. In my old .htaccess file I have added below code:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^(nl|en)/(.*)/(.*)/(.*)/(.*)/(.*)$ /index.php/$1/house/detail/$6 [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME}/index.html !-f
RewriteCond %{REQUEST_FILENAME}/index.php !-f
RewriteRule . index.php [L]
</IfModule>
As you can see if url is like en/country/state/city/area/1473 then request will rewrite to index.php/en/house/detail/1473, We have a single page which loads the detail of particular house and url of single page is "house/detail/1473". The code works fine in concrete5 - 5.6.3.5 but does not work in concrete5 - 8.4.4. Do you have any idea why rewrite url is not working as I have already spent lot of time on this?
Thanks
I have updated my website from concrete5 - 5.6.3.5 to concrete5 - 8.4.4. I have created packages and blocks from scratch as per new syntax of concrete5 - 8.4.4. Everything is working fine except one issue of .htaccess. In my old .htaccess file I have added below code:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^(nl|en)/(.*)/(.*)/(.*)/(.*)/(.*)$ /index.php/$1/house/detail/$6 [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME}/index.html !-f
RewriteCond %{REQUEST_FILENAME}/index.php !-f
RewriteRule . index.php [L]
</IfModule>
As you can see if url is like en/country/state/city/area/1473 then request will rewrite to index.php/en/house/detail/1473, We have a single page which loads the detail of particular house and url of single page is "house/detail/1473". The code works fine in concrete5 - 5.6.3.5 but does not work in concrete5 - 8.4.4. Do you have any idea why rewrite url is not working as I have already spent lot of time on this?
Thanks