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
Pretty URL
Pretty URL
- 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.
Reason: Please avoid auto-link of pseudo links by using "Do not automatically parse URLs" checkbox option. Thanks.
Re: Pretty URL
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.
http://bit.ly/1uYW8ioromancho wrote:1. Site doesn't make 301 redirect from www.domain.com to http://domain.com.
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.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
"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!
* 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!
Re: Pretty URL
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.
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.