Pretty URLs only work partially
Posted: Thu Apr 28, 2011 6:58 pm
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
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