Hi,
Is it possible to add a sort of pretty url that isn't based on the mod_rewrite rules but
But to a simple something like this:
En let couchcms handle the redirect (or include)
it has 2 advantages:
1) the htaccess is a lot simpler and more easy to rebuilt for example ngingx
2) if you add a template or page you dont have to rebuilt the htacces file and upload it anymore. Just add the page and let couch handle it.
for example here is a little basis for php handled pretty urls:
http://forum.codecall.net/topic/74170-c ... -with-php/
Is it possible to add a sort of pretty url that isn't based on the mod_rewrite rules but
- Code: Select all
#portfolio.php
RewriteRule ^portfolio$ "$0/" [R=301,L,QSA]
RewriteRule ^portfolio/$ portfolio.php [L,QSA]
RewriteRule ^portfolio/.*?([^\.\/]*)\.html$ portfolio.php?pname=$1 [L,QSA]
RewriteRule ^portfolio/([1-2]\d{3})/(?:(0[1-9]|1[0-2])/(?:(0[1-9]|1[0-9]|2[0-9]|3[0-1])/)?)?$ portfolio.php?d=$1$2$3 [L,QSA]
RewriteRule ^portfolio/[^\.]*?([^/\.]*)/$ portfolio.php?fname=$1 [L,QSA]
RewriteRule ^portfolio/[^\.]*?([^/\.]*)$ "$0/" [R=301,L,QSA]
But to a simple something like this:
- Code: Select all
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^ index.php [L]
En let couchcms handle the redirect (or include)
it has 2 advantages:
1) the htaccess is a lot simpler and more easy to rebuilt for example ngingx
2) if you add a template or page you dont have to rebuilt the htacces file and upload it anymore. Just add the page and let couch handle it.
for example here is a little basis for php handled pretty urls:
http://forum.codecall.net/topic/74170-c ... -with-php/