Page 1 of 1

Pretty URLs only work partially

Posted: Thu Apr 28, 2011 6:58 pm
by Parapet
I am using CMSMS 1.9.4.1, PHP 5.2.17, Apache 2.2.17 .

Here's the issue: My site works fine, but the problem is with pretty URLs:

Example: The URL

http://www.domainname.come/testpage.html

works, but so does

http://www.domainname.come/index.php?page=testpage

I want ONLY the first one to work. Another user had a similar problem as I describe below, but his solution did not work for me. My config file was written correctly where his had an extra space.

Since we are trying to track URLs using Google Analytics, we want to use just the pretty URLs. The pretty URLs are served up by the system, but for some reason we are also getting tracking on the non-pretty URL. Both types work when entered in manually, but we only want pretty URLs to work.

Anyone have any ideas as to how to do this? Or is this not possible? Do I need to enter in redirects for all these URLs so only the pretty URLs work?

I would prefer a solution other than redirects.

Thanks in advance for any help!
P

Re: Pretty URLs only work partially

Posted: Thu Apr 28, 2011 7:31 pm
by RonnyK
The second one will always work, as that is the internal method of the cmsms URL, with the page-alias at the end. The URLrewrite will allow a prettier URL to be available as well, but the original one will remain....

Ronny

[SOLVED] Re: Pretty URLs only work partially

Posted: Thu Apr 28, 2011 8:15 pm
by Parapet
RonnyK wrote:The second one will always work, as that is the internal method of the cmsms URL, with the page-alias at the end. The URLrewrite will allow a prettier URL to be available as well, but the original one will remain....

Ronny
Thanks Ronny, for taking the time to answer my question... it's much appreciated. Looks like redirects are how I will have to do this.