Page 1 of 1
Pretty URL
Posted: Wed Sep 24, 2014 10:25 am
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
Re: Pretty URL
Posted: Wed Sep 24, 2014 12:40 pm
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.
Re: Pretty URL
Posted: Wed Sep 24, 2014 12:48 pm
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.