Page 1 of 1

Page Url and Page Alias, how they work and how they relate to each other

Posted: Wed Dec 29, 2010 1:37 am
by userwords
(content->page->new page->options->page url)

Ive tried to find it in documentation but there is no reference to page url.

http://wiki.cmsmadesimple.org/index.php/User_Handbook/Getting_Started/Editor/Add_Content

I think is new feature and that it is still no documented. This is what it is written below the field page url.

Specify an alternat URL (relative to the root of your website) that can be used to uniquely identify this page. i.e: path/to/mypage


I dont understand why it says alternat URL

1. Does that mean that this is a second url.

2. Isnt that mean that filling this field will create duplicate content from engine crawlers perspective.

3. Does it also mean i can just leave it blank.

4. Does it have anything to do with pretty urls.

5. How i should write it:

url1 -> http://www.mydomain.com/my-page-title
url2 -> my-page-title
url3 -> http://www.mydomain.com/my-page-title.html
url4 -> my-page-title.html
url5 -> any other proper way from seo perspective

(content->page->new page->options->page alias)

Page Alias

It is said in documentation that page alias is used to build url, but in the same documentation page url which is supposed to be used to build url is not mention for being a new feature.

6. Which is the relationship between Page Url and Page Alias. If im already writing a full url in Page Url then what is supposed to do Page Alias if i write one (because you have to write one or can you leave it empty).

It is like page alias was an older feature than now is conflicting with page url or just me no understanding how they work.

thank to the community for you continuous work.


pd Ive found that

(content->page->new page->options->page specific smarty logic)
Is also not documented , would you give me a brief idea of how it works.

Re: Page Url and Page Alias, how they work and how they relate to each other

Posted: Wed Dec 29, 2010 7:12 am
by RonnyK
The alias is the UNIQUE alias for a page. Until 1.9 that was the ending value of a pages URL. Since 1.9 the PageURL is introduced which gives flexibility in URL creation.

Say 2 pages with the same meaning 'restaurants', under section 'Germany' and 'Holland' before, could have

domain/germany/restaurants.html
domain/holland/restaurants-2.html

as the alias needs to be unique. Now they can both have


domain/germany/restaurants.html
domain/holland/restaurants.html

as page-URL, where the alias still shows 'restaurants' and 'restaurants-2'.
Because of the canonical settings used, the crawlers will see them correctly.

Ronny

Re: Page Url and Page Alias, how they work and how they relate to each other

Posted: Thu Dec 30, 2010 12:34 am
by userwords
Ive found that alias is filled with what you write on

text menu title

if you leavealias empty. And that page url is not working, page alias is overcoming any page url i write and it is used instead in url of the kind

http://www.mydomain.com/index.php?page= ... e-an-alias

I have then gone

site admin -> global settings -> content editting settings

this must be a new feature because

.Although i chose spanish as language for cms made simple some tabs under global settings show in english (not important just got my attention)

.And i have gone to documentation to understand more about content editing settings and it is undocumented

http://wiki.cmsmadesimple.org/index.php/User_Handbook/Admin_Panel/Site_Admin/Global_Settings

Why im talking about this tab under global settings.

Because there are some options here that seem to work with page url and page alias.  Ill write them here but im translating some from spanish so they may not be exact words as shown in yours

.create page url automatically - yes or no(default)
.automatically created url are flat - yes or no(default)
.page url are needed - yes or no(changed it and dont remember which was default)

Do you have any idea why is not using what i write in page url to build page url. Ive played with options in content editing and didnt work, i get

http://www.mydomain.com/index.php?page= ... e-an-alias

Another questions is that if in case i get page url to work is then pretty url through htaccess and config.php needed anymore. I suppose that answer is no just want to clear it out.

Re: Page Url and Page Alias, how they work and how they relate to each other

Posted: Thu Dec 30, 2010 8:20 am
by RonnyK
You should enable pretty-URLs to get it working, as without it will work with the regular alias at the end. THe page-alias is set on the options-tab of a page, and gets filled by default with the values of the menu-title indeed. These are made lowercase and without spaces, by default. You can override it on the options-tab.

With pretty-URLs enabled, either 'mod_rewrite' with .htaccess or 'internal', the pageURL will be used . This offcourse only when a PageURL is filled, otherwise the alias will be used again.

On the globalsettings you can set if pageURLs are to be created by default (will initially be set similar to the pagealias, after setting it wont change when pagealias is changed) or if they are required as well.

Ronny

Re: Page Url and Page Alias, how they work and how they relate to each other

Posted: Thu Dec 30, 2010 9:02 am
by userwords
Now i got it, really great explanation Ronny. Im pretty sure this post will be usefull for any user trying to learn about new pretty url workflow in cms made simple.

Will look into it and try different options.

Re: Page Url and Page Alias, how they work and how they rela

Posted: Sun Jan 09, 2011 4:10 am
by Dr.CSS
If you do all the correct settings the news should have 'pretty URLs', mod_rewrite, .htaccess, etc....