Hi all,
I'm trying to get the clean URLs working for the blog post urls. I've added
to my .htaccess file. and also changed the 'Blog post page path' setting to '/news/{postSlug}' as per the instructions, but just get a 404 message when I click through to the 'post' page. This is my full .htaccess file:
Code
- <IfModule mod_rewrite.c>
- RewriteEngine on
- # Redirect all .php extensions
- RewriteCond %{REQUEST_FILENAME} !-f
- RewriteCond %{REQUEST_FILENAME} !-d
- RewriteCond %{REQUEST_FILENAME}.php -f
- RewriteRule ^([^\.]+)$ $1.php [L,QSA]
- # Blog Posts
- RewriteRule ^news/([a-zA-Z0-9-/]+)$ /news/post.php?p=$1 [L]
- # Perch Runway
- RewriteCond %{REQUEST_URI} !^/blabla
- RewriteCond %{REQUEST_FILENAME} !-f
- RewriteRule .* /blabla/core/runway/start.php [L]
- </IfModule>
- ExpiresActive On
- ExpiresDefault A1
- Header append Cache-Control must-revalidate
Might be also worth mentioning that I've renamed the folder containing the blog page templates to 'news' (perch/templates/pages/news). So the page location and routes for the 'news list' page is '/news' which works fine. The page location and routes for the 'post' page is '/news/post.php'. Any help or guidance would be very much appreciated.
Daz