Page 1 of 1

Two problems when using pretty URLs

Posted: Fri Aug 20, 2010 4:31 pm
by sherlock
hi

i just managed to configure the config.php file and htaccess for use of pretty URLs however there are two issues I did not manage to solve till now

1.
the first one is that all deeper pages (directories) contain an additional directory named 'index-2' for ex
http://localhost/cmsmadesimple/[b]index-2[/b]/category1/ or http://localhost/cmsmadesimple/[b]index-2[/b]/category1/subcategory1/ and so on ...
the main index page (http://localhost/cmsmadesimple/) uses different template than category and subcategory pages
what changes should I make so that 'index-2' doesn't appear? or what actually makes it to appear?

2.
my second problem is, what would be the best solution to use '/' at the end of category and subcategory pages and extensions (ex .html, .php) for subpages?
ex.
http://localhost/cmsmadesimple/category1/
http://localhost/cmsmadesimple/category1/page01.php
http://localhost/cmsmadesimple/category ... page01.php
http://localhost/cmsmadesimple/category1/subcategory1/

I am using CMSMS v 1.8.1

many thanks for those who can help me out

Re: Two problems when using pretty URLs

Posted: Fri Aug 20, 2010 6:41 pm
by baresi
Take a look at paths in config.php to see if 1) is happening because of that

May be copy your config.php contents here (taking out any sensitive info such as passwords)

Re: Two problems when using pretty URLs

Posted: Sat Aug 21, 2010 1:35 pm
by sherlock
hi Baresi

i have double checked my config.php file but everything looks to be OK
still, I am attaching it to see it for yourself
i have taken out all comments and left only what is actually enabled

i'm really curious what might cause this additional folder (index-2) to appear

look forward to any further comments

Re: Two problems when using pretty URLs

Posted: Sun Aug 22, 2010 7:33 am
by Jos
I think index-2 simply is the alias of the parent page

Re: Two problems when using pretty URLs

Posted: Mon Aug 23, 2010 8:25 am
by sherlock
yes Jos, you are right
yesterday I also figured out, I just missed it somehow :)
anyway, many thanks for your support