Two problems when using pretty URLs

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
sherlock
Forum Members
Forum Members
Posts: 15
Joined: Thu Aug 12, 2010 6:08 am

Two problems when using pretty URLs

Post 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
baresi
Forum Members
Forum Members
Posts: 129
Joined: Fri Jul 27, 2007 4:15 pm

Re: Two problems when using pretty URLs

Post 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)
sherlock
Forum Members
Forum Members
Posts: 15
Joined: Thu Aug 12, 2010 6:08 am

Re: Two problems when using pretty URLs

Post 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
Attachments

[The extension txt has been deactivated and can no longer be displayed.]

Jos
Support Guru
Support Guru
Posts: 4019
Joined: Wed Sep 05, 2007 8:03 pm

Re: Two problems when using pretty URLs

Post by Jos »

I think index-2 simply is the alias of the parent page
sherlock
Forum Members
Forum Members
Posts: 15
Joined: Thu Aug 12, 2010 6:08 am

Re: Two problems when using pretty URLs

Post by sherlock »

yes Jos, you are right
yesterday I also figured out, I just missed it somehow :)
anyway, many thanks for your support
Post Reply

Return to “CMSMS Core”