Problems, need help? Have a tip or advice? Post it here.
4 posts Page 1 of 1
I am running on Ubuntu 14.04 with Apache2 and currently test Coach on my localhost. My idea is to first enable Pretty URLs on my localhost and if everything is working, move the whole site to a live server. (Not sure what the preferred workflow is ?!) . I would also like to work with relative links. An aspect I absolutely hate about WordPress is that everything is saved in absolute paths, meaning that I have to run a regex database tool for final deployment to change all links...

I have enabled mod_rewrite and set the folder permissions in '/etc/apache2/sites-available/000-default.conf':

Code: Select all
<Directory /var/www/html>
                AllowOverride All
</Directory>


<?php phpinfo(); ?> tells me that mod_rewrite is enabled and also the rewrite test (viewtopic.php?p=11832#p11832) tells me that HTTP_MOD_REWRITE is set.

I generated .htaccess as described in the tutorials (http://www.couchcms.com/docs/concepts/pretty-urls.html) via gen_htaccess.php and placed it in the root folder.

Visiting the root URL works, but all other links throw an error:

404 NOT FOUND -
Not Found
The requested URL /about.php was not found on this server.


Any idea what's wrong?

Thanks for your advice.

Attachments

Difficult to say without looking at the problem firsthand.

One possible reason could be that the 'couch' folder is not situated directly within the the site's root - rather it is within a subfolder e.g.
http://localhost/test/couch/
For such cases, the generated .htaccess file has a setting within to specify the subfolder.

Can you confirm that this is not the case?
That is the case... ;)

My project sits in /var/www/html/my_project/ and is then available in the browser through:

http://localhost/my_project

I added the folder in .htaccess. It works now.
Thanks for your quick response.

Just for clarification:

Would you turn on Pretty URLs already in localhost or rather on the live server?
Would you turn on Pretty URLs already in localhost or rather on the live server?
I tend to see both as separate ventures -
on localhost I turn on prettyurls to see everything is working fine.
Disable the setting while migrating to the live server (http://www.couchcms.com/docs/miscellane ... erver.html).
Check on the live version if everything is working fine.
Finally turn on prettyURLs on the live site.
4 posts Page 1 of 1