Problems, need help? Have a tip or advice? Post it here.
6 posts Page 1 of 1
Hello!

I am designing a website for a client, and at the moment am at the very early stages of design on the server.

I have installed couchcms successfully at the following url

http://www.xyz.com/couch

I have enabled pretty urls and am trying to use gen_htaccess to generate some modrewrite code.

I have googled this problem and read over the following thread :

viewtopic.php?f=4&t=7328

I have logged in via my super admin account and opened the gen_htaccess.php file.

I have attempted in firefox, chrome, and even internet explorer, and they all come up with the same result, empty code blank page.

I am on hostgator hosting servers and have verified they support the mod_rewrite function at the following url :

http://support.hostgator.com/articles/g ... d-examples

I am just wondering if there is something I am missing? I can log in to the cms just fine, and all functions, for what little i've done so far, work just fine.

What could be the problem?
Hi and welcome, proofinlife :)

If you are sure you are logged-in as super-admin, there is really nothing more I could suggest.

Can you get me FTP+Couch access to your site please?
Let me take a look at the problem.
Thanks for the creds.
I logged in and had a look.

The 'problem', it seems, is that your site does not have any templates registered as yet.
gen_htaccess.php has nothing to output the rules for and hence the blank screen.

As mentioned in the docs (http://www.couchcms.com/docs/concepts/pretty-urls.html), configuring prettyURLs should be the very last thing you do before delivering a site because at that time all the templates used by the site would be registered.

I suggest you please first build the site the normal way and then, once everything works as desired, use gen_htaccess to get the rules and turn prettyURLs on.

Thanks.
KK wrote: Thanks for the creds.
I logged in and had a look.

The 'problem', it seems, is that your site does not have any templates registered as yet.
gen_htaccess.php has nothing to output the rules for and hence the blank screen.

As mentioned in the docs (http://www.couchcms.com/docs/concepts/pretty-urls.html), configuring prettyURLs should be the very last thing you do before delivering a site because at that time all the templates used by the site would be registered.

I suggest you please first build the site the normal way and then, once everything works as desired, use gen_htaccess to get the rules and turn prettyURLs on.

Thanks.


Ooooh, i see, it creates an htaccess file based on all the templates i've built. I didn't quite get that in the docs, sorry. So, if in the future I add more templates after the ones I initially make, should I re-generate the htaccess??
if in the future I add more templates after the ones I initially make, should I re-generate the htaccess??
That's right. Precisely why it is recommended to do this as the last step in creating a site.
Very Good thank you very much!
6 posts Page 1 of 1