That seems not to hard at all :) I'll go and set it up, thanks!

Op vrijdag 15 maart 2013 22:36:20 UTC+1 schreef Justin Carter het volgende:
>
> Oh and in this case your objectid to pass in to getLink() will be 
> newsitem.objectid 
> On 16/03/2013 8:26 AM, "Marco van den Oever" 
> <[email protected]<javascript:>> 
> wrote:
>
>> Ok awesome that works great on the 301 redirection :)
>>
>> So what you are saying about application.fapi.getLink(), in fact I can 
>> use FU's? Like:
>>  
>> <cflocation url="#application.fapi.getLink(objectid=categorie)#" 
>> statuscode="301" addtoken="false">
>>
>> I have tried this and it's sending me to index.cfm?objectid=XXXXXXXXX
>>
>> I do have created a FU for it.
>>
>> Guess I still don't understand how to run FU's, got to check some config 
>> setting somewhere like use the FU's? Or still also need Apache to rewrite?
>>
>> Thanks.
>>
>> Op vrijdag 15 maart 2013 21:25:29 UTC+1 schreef Justin Carter het 
>> volgende:
>>>
>>> The easiest way to see the 301 is to use the Network tab in Firebug / 
>>> Chrome Web Inspector. Turn on "persist", clear the log, hit the URL that 
>>> you're testing, and at the top of the list you should see a 301 for the old 
>>> URL followed by a 200 for the URL that it redirected to. (Remember to turn 
>>> off persist again also)
>>>
>>> BTW, if your site is using friendly URLs then instead of redirecting to 
>>> index.cfm with an objectid, you could call application.fapi.getLink() which 
>>> will return the friendly URL.
>>>
>>> Cheers,
>>> Justin
>>> On 16/03/2013 12:45 AM, "Marco van den Oever" <[email protected]> 
>>> wrote:
>>>
>>>> In addition.... I have tried, without success, several things to check 
>>>> if the headers are set correctly with 301 code, how do you check that?
>>>> With this code I have tried a cgi dump to check te referrer etc, but 
>>>> can't see any 301 header info, is that even possible after a cflocation?
>>>>
>>>> Op vrijdag 15 maart 2013 14:43:07 UTC+1 schreef Marco van den Oever het 
>>>> volgende:
>>>>>
>>>>> I guess Justin his answer pretty much covered this 'problem', it's not 
>>>>> working as my old URL contains "." in it.
>>>>>
>>>>> So I have chosen not to use Apache for rewriting as I have no 
>>>>> experience with it and have read here and there that you really should 
>>>>> know 
>>>>> what you are doing with it, no time to study!
>>>>>
>>>>> Just to be sure, I am very scared of using new URLs, this is my code:
>>>>>
>>>>> <!--- redirect old url's to new ones --->
>>>>> <cfif isdefined('url.newsid')>
>>>>>
>>>>> <!--- get related news item --->
>>>>> <cfquery name="newsitem" datasource="aquariusagenieuw">
>>>>> SELECT ObjectID FROM dmnews
>>>>> WHERE oldid = <cfqueryparam cfsqltype="cf_sql_varchar" value=
>>>>> "#url.newsid#">
>>>>> </cfquery>
>>>>>
>>>>> <!--- go to new url --->
>>>>> <cflocation url="index.cfm?objectid=#**newsi**tem.ObjectID#" 
>>>>> statuscode="301" addtoken="false">
>>>>>
>>>>> </cfif>
>>>>>
>>>>> Is this satisfying google and other search engines rules?
>>>>>
>>>>> Op vrijdag 8 maart 2013 14:38:37 UTC+1 schreef Marco van den Oever het 
>>>>> volgende:
>>>>>>
>>>>>> I am testing to use the Farcry FU's, have created a friendly URL for 
>>>>>> a navigation node but when I go to the website it's not using a FU.
>>>>>> So do I have to set something up in Apache?
>>>>>>
>>>>>> I want to avoid Apache as I am not experienced in handling rewrites 
>>>>>> in there.
>>>>>>
>>>>>> Op donderdag 7 maart 2013 00:04:58 UTC+1 schreef Marco van den Oever 
>>>>>> het volgende:
>>>>>>>
>>>>>>> Hi all, I'm changing website url's from old to Farcry url's, I am 
>>>>>>> not really sure to use FU's, it seems hard to set up and is it really 
>>>>>>> better for search results?
>>>>>>> Also should I use 301 redirect in the Apache server or can I just 
>>>>>>> create my own cfml redirection code and place it in my header?
>>>>>>>
>>>>>>> All together there are up to almost 1000 url's, so whats the best 
>>>>>>> approach...
>>>>>>>
>>>>>>  -- 
>>>> You received this message cos you are subscribed to "farcry-dev" Google 
>>>> group.
>>>> To post, email: [email protected]
>>>> To unsubscribe, email: farcry-dev+...@**googlegroups.com
>>>> For more options: 
>>>> http://groups.google.com/**group/farcry-dev<http://groups.google.com/group/farcry-dev>
>>>> ------------------------------**--
>>>> Follow us on Twitter: http://twitter.com/farcry
>>>> --- 
>>>> You received this message because you are subscribed to the Google 
>>>> Groups "farcry-dev" group.
>>>> To unsubscribe from this group and stop receiving emails from it, send 
>>>> an email to farcry-dev+...@**googlegroups.com.
>>>> For more options, visit 
>>>> https://groups.google.com/**groups/opt_out<https://groups.google.com/groups/opt_out>
>>>> .
>>>>  
>>>>  
>>>>
>>>  -- 
>> You received this message cos you are subscribed to "farcry-dev" Google 
>> group.
>> To post, email: [email protected] <javascript:>
>> To unsubscribe, email: [email protected] <javascript:>
>> For more options: http://groups.google.com/group/farcry-dev
>> --------------------------------
>> Follow us on Twitter: http://twitter.com/farcry
>> --- 
>> You received this message because you are subscribed to the Google Groups 
>> "farcry-dev" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to [email protected] <javascript:>.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>  
>>  
>>
>

-- 
You received this message cos you are subscribed to "farcry-dev" Google group.
To post, email: [email protected]
To unsubscribe, email: [email protected]
For more options: http://groups.google.com/group/farcry-dev
--------------------------------
Follow us on Twitter: http://twitter.com/farcry
--- 
You received this message because you are subscribed to the Google Groups 
"farcry-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to