Rewriting URL's to remove .php
11 posts by 3 authors in: Forums > CMS Builder
Last Post: May 26, 2010 (RSS)
By Dave - May 26, 2010
Hi aquaman,
Creating custom URLS and using mod_rewrite can get pretty tricky pretty fast, as you've seen, but try this:
Under Section Editors > yacht_type > Viewer Urls:
Set "Detail Page Url" to /yacht-type
In your yacht list and detail page set:
'useSeoUrls' => true,
In your .htaccess use a custom rule that matches the url filename:
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^yacht-type/(.*?)$ yacht-type.php?$1 [L]
Hope that helps! Let me know if that works for you.
Creating custom URLS and using mod_rewrite can get pretty tricky pretty fast, as you've seen, but try this:
Under Section Editors > yacht_type > Viewer Urls:
Set "Detail Page Url" to /yacht-type
In your yacht list and detail page set:
'useSeoUrls' => true,
In your .htaccess use a custom rule that matches the url filename:
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^yacht-type/(.*?)$ yacht-type.php?$1 [L]
Hope that helps! Let me know if that works for you.
Dave Edis - Senior Developer
interactivetools.com
interactivetools.com