Page 1 of 1
[SOLVED]does 'page_extension' in config.php cause duplicity
Posted: Wed Jan 19, 2011 11:52 am
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.
Re: does setting 'page_extension' in config.php cause duplic
Posted: Wed Jan 19, 2011 5:50 pm
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...
Re: does setting 'page_extension' in config.php cause duplic
Posted: Wed Jan 19, 2011 7:26 pm
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
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.