Problems, need help? Have a tip or advice? Post it here.
7 posts Page 1 of 1
Hi,

I've managed to get couch working and it's great. I have also managed to enable pretty urls with the cloneable templates which is great and it has all been very easy to plug into my existing, static, website.

Now I have a problem though :x

Having previously got basic pages up and running through the cms (one called Overseas.php) and then successfully enabling cloneable template and setting up the .htaccess etc, I'm now struggling to get rid of it.

This page Overseas.php I cannot get to display. I always get 404 UNLESS I change the filename to, say, Overseas10.php, then it works just fine! I have turned off pretty urls and here are my htaccess rules. I just cannot get this php page to display when it's called Overseas.php and it's very frustrating!!

I hope you can help me. I just cannot seem to get rid of couch's reference to Overseas.php.


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]

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

Thanks
So, are prettyURLs turned on when you see this error?
Thanks for replying

I see this error with pretty urls off and with pretty urls on.

The contents of Overseas.php is "<?php echo "hello"; ?>"
OK, let us try it with prettyURLs off first -
set prettyURLs to 0 in config.php *and* delete the .htaccess file from root (or rename it).
Do you still see the problem?

If so, it could be a cache issue.
Try clearing the cache of your browser and login as admin in Couch to do the test again.

Please let me know how it goes.
I turned off pretty urls and double checked by opening the config.php in the server (for the avoidance of doubt, this file is in the couch sub directory).

I have deleted the .htaccess file in the "public_html" folder (i.e. my websites route).

Pretty url web pages no longer work, as expected, but the "non-pretty" url version of the page with the querystring parameter does still work. All as expected.

The page Overseas.php still does not display.

Thanks again for your assistance.
Got it working, just tried a different browser after completing the above steps. I had done these steps before but hadn't tried a different browser (your cache clear suggestion lead me to try this) so something awry somewhere.

Anyway, all good now and thanks for your assistance.
I am glad the problem is resolved :)
Thanks for letting us know.
7 posts Page 1 of 1