Page 1 of 1

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

Posted: Sat May 23, 2009 1:08 am
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

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

Posted: Thu May 28, 2009 11:53 pm
by clc
I'm having the exact same issue, same configuration.  Did you come up with anything yet?

Thanks!

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

Posted: Fri May 29, 2009 12:03 am
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

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

Posted: Fri May 29, 2009 12:31 am
by nuno
clc wrote:

use_hierarchy=true

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

Posted: Fri May 29, 2009 12:43 am
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...

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

Posted: Fri May 29, 2009 2:10 am
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.  :)

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

Posted: Wed Jul 01, 2009 8:46 pm
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

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

Posted: Wed Jul 01, 2009 8:49 pm
by curlypinky
Awesomeness clc, it works! Thanks much for posting your efforts!
Alane