Pretty URLs only work partially

Help with getting the CMS CORE package up and running. This does not include 3rd party modules, PHP scripts, anything downloaded via module manager or from any external source.
Locked
Parapet
Forum Members
Forum Members
Posts: 26
Joined: Tue Jul 28, 2009 8:19 pm

Pretty URLs only work partially

Post 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
RonnyK
Support Guru
Support Guru
Posts: 4962
Joined: Wed Oct 25, 2006 8:29 pm

Re: Pretty URLs only work partially

Post 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
Parapet
Forum Members
Forum Members
Posts: 26
Joined: Tue Jul 28, 2009 8:19 pm

[SOLVED] Re: Pretty URLs only work partially

Post 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.
Locked

Return to “[locked] Installation, Setup and Upgrade”