Problems, need help? Have a tip or advice? Post it here.
5 posts Page 1 of 1
When I enable Pretty URLs in the config and then create the .htaccess file the blog page url changes from /blog.php to /blog and the blog_listing.html page shows, but you can't access any of the individual posts via the Read More link. Also, the Archive and Latest News links stop working. What have I overlooked? Here is the page link: http://dubowmediation.net/blog.php

Here's the .htaccess for the site. It is placed in the site's root. The CouchCMS files are in the /news/ directory and the snippets are in the /news/snippets/ directory. The blog.php file is in the root directory.

<code>
Options All -Indexes
Options +FollowSymlinks -MultiViews
<IfModule mod_rewrite.c>
RewriteEngine On

#If your website is installed in a subfolder, change the line below to reflect the path to the subfolder.
#e.g. for http://www.example.com/subdomain1/subdomain2/ make it RewriteBase /subdomain1/subdomain2
RewriteBase /

#If you wish to use a custom 404 page, place a file named 404.php in your website's root and uncomment the line below.
#If your website is installed in a subfolder, change the line below to reflect the path to the subfolder.
#e.g. for http://www.example.com/subdomain1/subdomain2/ make it ErrorDocument 404 /subdomain1/subdomain2/404.php
#ErrorDocument 404 /404.php

#If your site begins with 'www', uncomment the following two lines
#RewriteCond %{HTTP_HOST} !^www\.
#RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]


#DO NOT EDIT BELOW THIS


RewriteCond %{REQUEST_FILENAME} -d [OR]
RewriteCond %{REQUEST_FILENAME} -f
RewriteRule . - [L]

#blog.php
RewriteRule ^blog$ "$0/" [R=301,L,QSA]
RewriteRule ^blog/$ blog.php [L,QSA]
RewriteRule ^blog/.*?([^\.\/]*)\.html$ blog.php?pname=$1 [L,QSA]
RewriteRule ^blog/([1-2]\d{3})/(?:(0[1-9]|1[0-2])/(?:(0[1-9]|1[0-9]|2[0-9]|3[0-1])/)?)?$ blog.php?d=$1$2$3 [L,QSA]
RewriteRule ^blog/[^\.]*?([^/\.]*)/$ blog.php?fname=$1 [L,QSA]
RewriteRule ^blog/[^\.]*?([^/\.]*)$ "$0/" [R=301,L,QSA]
</IfModule>
</code>

Thanks!
Hi Steve,

I had a look and it seems that when one accesses a page or archive, the web server redirects the visitor to the list page.

This is, of course, not the expected behaviour.
Can you please take a look at the site yourself using FTP and see if there is any other .htaccess file around that could be doing this?

Please let me know.
Thanks.
There wasn't another .htaccess file on the site. mod_rewrite is enable on the server. This is running on a VPS, could there be something that needs to be installed on the server that is causing the issue? Is there something in the functions.php that needs to be changed? I didn't see anything in the blog_list.html or the blog.php that should be redirecting anything back. I'm not sure where else to look.
There is nothing in the default setting setting of Couch that could be doing this.

Can you grant me FTP + Couch access to the server please?
Let me see if I can spot something.

Thanks
I pm'd you FTP access for another issue I was having a couple of days ago. I will pm it to you again now so you don't have to look for it.

Thanks!
5 posts Page 1 of 1