Pretty URL

The place to talk about things that are related to CMS Made simple, but don't fit anywhere else.
Post Reply
romancho
Forum Members
Forum Members
Posts: 11
Joined: Sun Feb 08, 2009 9:52 pm

Pretty URL

Post by romancho »

Hello,

help me please with htaccess and making pretty urls.

I put standart htaccess form /docs, but still has two problems:

1. Site doesn't make 301 redirect from http://www.domain.com to http://domain.com.

2. If I open http://domain.com/index.php&page=alias site doesn't make 301 redirect to http://domain.com/directory/subdirectory/alias


Thanks
Attachments

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

Last edited by Jo Morg on Wed Sep 24, 2014 12:41 pm, edited 1 time in total.
Reason: Please avoid auto-link of pseudo links by using "Do not automatically parse URLs" checkbox option. Thanks.
User avatar
Jo Morg
Dev Team Member
Dev Team Member
Posts: 1968
Joined: Mon Jan 29, 2007 4:47 pm

Re: Pretty URL

Post by Jo Morg »

None of the issues you posted about are problems, and none related to CMSMS. The htaccess sample that is delivered with the install is precisely that: a working sample. We can't cover everybody needs, and some knowledge and/or research is required to further customize a CMSMS installation.
romancho wrote:1. Site doesn't make 301 redirect from www.domain.com to http://domain.com.
http://bit.ly/1uYW8io
romancho wrote:2. If I open http://domain.com/index.php&page=alias site doesn't make 301 redirect to http://domain.com/directory/subdirectory/alias
That is as designed: PHP scripts read .../index.php&page=alias and htaccess rewrites directory/subdirectory/alias to what PHP scripts can read. If you put http://domain.com/index.php&page=alias on your browser you are using a valid url. If you are concerned with SEO you need to search and learn about the use of canonical URL's and how to set them up in CMSMS.
"There are 10 types of people in this world, those who understand binary... and those who don't."
* by the way: English is NOT my native language (sorry for any mistakes...).
Code of Condut | CMSMS Docs | Help Support CMSMS
My developer Page on the Forge
GeekMoot 2015 in Ghent, Belgium: I was there!
GeekMoot 2016 in Leicester, UK: I was there!
DevMoot 2023 in Cynwyd, Wales: I was there!
User avatar
velden
Dev Team Member
Dev Team Member
Posts: 3497
Joined: Mon Nov 28, 2011 9:29 am

Re: Pretty URL

Post by velden »

1. I don't have an example here unfortunately, but it can be done. It's not cmsms related.

2. is not fixable and should NOT be a problem. I know: SEO. Don't believe it. Google for 'canonical urls'. Have a look at the default template that comes with CMSMS install, it's used there.
Post Reply

Return to “The Lounge”