[solved] cmslinker not working with external page type w/ mod_rewrite

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
curlypinky
Forum Members
Forum Members
Posts: 109
Joined: Thu Sep 04, 2008 3:49 am

[solved] cmslinker not working with external page type w/ mod_rewrite

Post by curlypinky »

CMSMS 1.5.4
basic mod_rewrite enabled

Using the cmslinker tool in TinyMCE is great for the internal pages but if I use it to call the link for a page of the external type it is instead creating a link to an internal page.

See http://www.konatraveler.com/Kona-Vacati ... deals.html, there is a link up near the top in the text "Book any of our vacation rentals". That link was inserted using cmslinker and the page is content type "external". It should go to http://konaoceanfronts.com/site/Propert ... fault.aspx but instead it is going to http://www.konatraveler.com/Kona-Vacati ... rties.html - which is the page alias of the external page but is is instead making a blank internal page out of it. I tried doing a 301 redirect for /Kona-Vacation-Accommodations/browse-search-properties.html but that produces an error on the receiving site (I think it is passing variables in the url)

Code: Select all

redirect 301 /Kona-Vacation-Accommodations/browse-search-properties.html http://konaoceanfronts.com/site/PropertyList/578/default.aspx
Does anyone have any ideas? Or if you can at least tell me where is the function that creates cmslinker?

Thanks!
Alane
Last edited by curlypinky on Wed Jul 01, 2009 8:50 pm, edited 1 time in total.
clc
Forum Members
Forum Members
Posts: 26
Joined: Fri Feb 27, 2009 6:00 am

Re: cmslinker not working with external page type w/ mod_rewrite

Post by clc »

I'm having the exact same issue, same configuration.  Did you come up with anything yet?

Thanks!
clc
Forum Members
Forum Members
Posts: 26
Joined: Fri Feb 27, 2009 6:00 am

Re: cmslinker not working with external page type w/ mod_rewrite

Post by clc »

Whoops, never mind, not *quite* the same issue, I've been at the keyboard too long.  :)  But it does seem to be related -- I have a page of Content Type "external link" that also creates a blank internal page if called directly by its alias. It redirects properly if called from within Menu Manager, just not if called directly.  Doesn't seem like that should be by design?

CMSMS 1.5.4
MenuManager 1.5.3
assume_mod_rewrite = true
page_extension=.html
use_hierarchy=false
nuno

Re: cmslinker not working with external page type w/ mod_rewrite

Post by nuno »

clc wrote:

use_hierarchy=true
clc
Forum Members
Forum Members
Posts: 26
Joined: Fri Feb 27, 2009 6:00 am

Re: cmslinker not working with external page type w/ mod_rewrite

Post by clc »

Thanks for the quick answer!  Unfortunately I'm trying to migrate from an old site that didn't use a hierarchy, so if I enable the hierarchy all the old links are going to break.  Which is an issue since there are a lot of other sites linking *to* this one.  Unless I go and redirect them all...
clc
Forum Members
Forum Members
Posts: 26
Joined: Fri Feb 27, 2009 6:00 am

Re: cmslinker not working with external page type w/ mod_rewrite

Post by clc »

Okay, here's my workaround.  Since there was was only one of these, I made a rewrite rule in my .htaccess:

RewriteRule pagealias.html http://www.myexternallink.com [r=302,l]

I put it right after my RewriteBase line, before the pretty URL conditions and rules, and everything seems hunky dory.  :)
curlypinky
Forum Members
Forum Members
Posts: 109
Joined: Thu Sep 04, 2008 3:49 am

Re: cmslinker not working with external page type w/ mod_rewrite

Post by curlypinky »

Whoops! I should have checked my notifications clc! Your issue is the same as mine, I will try your 302 solution - I had just tried 301 but it wasn't taking.

As for mine, heirarchy is true.

Alane
curlypinky
Forum Members
Forum Members
Posts: 109
Joined: Thu Sep 04, 2008 3:49 am

Re: cmslinker not working with external page type w/ mod_rewrite

Post by curlypinky »

Awesomeness clc, it works! Thanks much for posting your efforts!
Alane
Post Reply

Return to “CMSMS Core”