[SOLVED]does 'page_extension' in config.php cause duplicity

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
userwords
Forum Members
Forum Members
Posts: 48
Joined: Mon Dec 27, 2010 12:27 am

[SOLVED]does 'page_extension' in config.php cause duplicity

Post by userwords »

Code: Select all

#URL Settings
#------------

#What type of URL rewriting should we be using for pretty URLs?  Valid options are:
#'none', 'internal', and 'mod_rewrite'.  'internal' will not work with IIS some CGI
#configurations. 'mod_rewrite' requires proper apache configuration, a valid
#.htaccess file and most likely {metadata} in your page templates.  For more
#information, see:
#http://wiki.cmsmadesimple.org/index.php/FAQ/Installation/Pretty_URLs#Pretty_URL.27s
$config['url_rewriting'] = 'mod_rewrite';

#Extension to use if you're using mod_rewrite for pretty URLs.
$config['page_extension'] = '.html';

#If using none of the above options, what should we be using for the query string
#variable?  (ex. http://www.mysite.com/index.php?page=somecontent)
$config['query_var'] = 'page';
Ive set a 'page_extension' as .html so the server append that extension to every url on a site. But then i asked myself if i could reach the content also in the original url set under page options (ive ticked the option under site tab to force page url field to be filled for every new page). And apparently it works so any page seems to be reachable from:

http:\\www.mydomain.com\my-page.html
(for me localhost/my-page.html)
and

http:\\www.mydomain.com\my-page
(for me localhost/my-page)

Im still working the design in xampp so i cannot be sure of real duplicity until i upload the web and still has lot of work prior to that. So i decided to ask here if someone knows if my guess is correct.

In that case would be better to leave that config.php option untouched with no 'page_extension' value.

My interest in this is only seo so maybe im wasting my time for some unproven fact that a page is better under a pretty url ending in a extension like .html that without any extension at all.
Last edited by userwords on Wed Jan 19, 2011 7:42 pm, edited 1 time in total.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: does setting 'page_extension' in config.php cause duplic

Post by Dr.CSS »

Yes you can reach a page by typing it in w/o the extension and get the same page as the one with the extension, BUT no spider bot from google or any other search engine is going to try finding the pages w/o the extension, they just follow links in the site to the pages of the site and no visitor is going to try pages by typing them in w/o the extension...

So no worries...
userwords
Forum Members
Forum Members
Posts: 48
Joined: Mon Dec 27, 2010 12:27 am

Re: does setting 'page_extension' in config.php cause duplic

Post by userwords »

Enough for me, i suppose that i should have been more practical when thinking about this, as you say, bot wont lose its time playing TURLTRIS (some kind mix of tetris and urls) to get points for every url it finds :D

Would u mind looking at this other post:

http://forum.cmsmadesimple.org/viewtopi ... 77#p243277

Because in this case (news with pretty url activated) maybe its me again not being practical but bot will, as you say, follow links and reach news detail page and then find there is always a canonical tag telling him to use a completely different url, then search engine show that url on the index and not the pretty one, and any visitor coming from search engine will try to enter using an url that should not be using. I really dont know if i have found some inconsistency or maybe its me missconfiguring. If you find a moment to consider it, would be nice to have your opinion on this.
Post Reply

Return to “CMSMS Core”