Problems, need help? Have a tip or advice? Post it here.
3 posts Page 1 of 1
Hey guys, I just moved my website to server from my XAMPP. Just look at it: http://www.dwdzmysliborz.pl/nowa

I have 4 templates:
stronaglowna.php the site you can see after visiting website I added
Code: Select all
DirectoryIndex stronaglowna.php
to .htaccess file to open this file instead of index.php
index.php this is the the template for my all other subpages
galeria.php
kontakt.php

The problem is, when you click on any subpage that is a page of the index.php like 'Kadra' or 'Oferta' the 'Page not found' appears. What do I do wrong?

Thanks for reading.
Hi,

I visited the site and the reported pages seem to be working fine now.
I suppose you managed to solve this problem :)
Hey KK! Yes I managed to do it. But after moving my website from subfolder /nowa to the main directory I get

ERROR: 'couch' folder should reside in the main web-site folder
.

Of course I referred to past topics and used snippet:
Code: Select all
<?php require_once(dirname(__FILE__).'/couch/cms.php'); 
?>

I know that I can modify each template to repair it, but maybe there is a dynamic-working solution for this? After moving to main directory I generated new .htaccess of course, and I changed path to the site in config.php to http://www.dwdzmysliborz.pl

Thanks :)
EDIT:
Moreover using <?php define( 'K_TEMPLATE_NAME', 'blog.php' ); ?> will be a pain, since I use 4 templates and have header.php to deliver the top of every template. So every template has the same top.

EDIT2:
I just notice that my domain lacks www, so I deleted www from my config URL. But still doesn't work. Could it be somehow the issue?
3 posts Page 1 of 1