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=#newsitem.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: [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