<![CDATA[ 301 redirect htaccess help - My Forums]]> https://forums.modx.com/thread/?thread=89562 <![CDATA[Re: 301 redirect htaccess help]]> https://forums.modx.com/thread/89562/301-redirect-htaccess-help?page=2#dis-post-493415 Quote from: fourroses666 at Mar 22, 2014, 08:39 AM
@banzai, Why would with-out be better? I think adding an url to the home will be better for seo, but maybe it doesn't matter that much. The only thing I don't like about it is that it doesn't look that nice

I do not think that this choice could really harm you Seo on site, but In the best-case scenario will not make any difference

1) Most of external links will point to the domain url www.sitename.com, then most of rank (page or authority rank) will be directed to this url .
Even if you have the htaccess redirect to http://www.sitename.com/rotterdam-development.html will not be the same thing

2) this is the reason why search engines identifies the domain url like a container and distributes the rank in a pyramid model, starting from the domain url.


@iusemodx cool IF code for canonical url - bookmarked wink]]>
banzai Mar 23, 2014, 06:14 PM https://forums.modx.com/thread/89562/301-redirect-htaccess-help?page=2#dis-post-493415
<![CDATA[Re: 301 redirect htaccess help]]> https://forums.modx.com/thread/89562/301-redirect-htaccess-help#dis-post-493283
@iusemodx, I know about the site start offcourse, but when linking in a resourse to the homepage the "full" url pops up. So if I'm right you always need to add the canonical link to correct this for Google (duplicate content). I think your call is correct, thanks!]]>
fourroses666 Mar 22, 2014, 03:39 AM https://forums.modx.com/thread/89562/301-redirect-htaccess-help#dis-post-493283
<![CDATA[Re: 301 redirect htaccess help]]> https://forums.modx.com/thread/89562/301-redirect-htaccess-help#dis-post-493275 Quote from: fourroses666 at Mar 21, 2014, 09:25 AM
Would this do it when I set this on the homepage?

<link rel="canonical" href="http://www.sitename.com/rotterdam-development.html">

<link rel="canonical" href="[(site_url)][~1~]">

You may or may not be aware of this but you can set the "Site start" in the system configuration.

Quote: "Enter the ID of the Resource you want to use as homepage here. NOTE: make sure this ID you enter belongs to an existing Resource, and that it has been published!"

I haven't tried this but give it a go

If it doesn't fully work, then use a combination of canonical and site start

My canonical call:

<link rel="canonical" href="[[if? &is=`[*id*]:is:1` &then=`[(site_url)]` &else=`[(site_url)][~[*id*]~]`]]">
]]>
iusemodx Mar 21, 2014, 07:49 PM https://forums.modx.com/thread/89562/301-redirect-htaccess-help#dis-post-493275
<![CDATA[Re: 301 redirect htaccess help]]> https://forums.modx.com/thread/89562/301-redirect-htaccess-help#dis-post-493274
1) www.sitename.com it would be better for seo
2) but if you prefer sitename.com/rotterdam-development.html - yes, canonical url will solve google webmaster tool duplicate content


@canman
Try Virtual Alias or NGRedirect plugin instead .htacess redirect

http://www.stanback.net/code/modx/virtual-aliases.html

http://modx.com/extras/package/ngredirect
]]>
banzai Mar 21, 2014, 07:31 PM https://forums.modx.com/thread/89562/301-redirect-htaccess-help#dis-post-493274
<![CDATA[Re: 301 redirect htaccess help]]> https://forums.modx.com/thread/89562/301-redirect-htaccess-help#dis-post-493219 google see it as duplicate content as what I think is whats happening.

but actually this is a other subject. your 301 redirect works. lipsrsealed
]]>
fourroses666 Mar 21, 2014, 09:11 AM https://forums.modx.com/thread/89562/301-redirect-htaccess-help#dis-post-493219
<![CDATA[Re: 301 redirect htaccess help]]> https://forums.modx.com/thread/89562/301-redirect-htaccess-help#dis-post-493199
Not sure tbh, i use that solely for rewriting urls from one to another

ive never had the homepage as anything other than www.sitename.com]]>
Tyreal2012 Mar 21, 2014, 04:41 AM https://forums.modx.com/thread/89562/301-redirect-htaccess-help#dis-post-493199
<![CDATA[Re: 301 redirect htaccess help]]> https://forums.modx.com/thread/89562/301-redirect-htaccess-help#dis-post-493196
<link rel="canonical" href="http://www.sitename.com/rotterdam-development.html">

<link rel="canonical" href="[(site_url)][~1~]">
]]>
fourroses666 Mar 21, 2014, 04:25 AM https://forums.modx.com/thread/89562/301-redirect-htaccess-help#dis-post-493196
<![CDATA[Re: 301 redirect htaccess help]]> https://forums.modx.com/thread/89562/301-redirect-htaccess-help#dis-post-493195
I would like to have my homepage not as www.sitename.com but always like www.sitename.com/rotterdam-development.html

At the moment google says, hey thats duplicate content!
or should I better use a canonical link?
Did anyone used that already?]]>
fourroses666 Mar 21, 2014, 04:23 AM https://forums.modx.com/thread/89562/301-redirect-htaccess-help#dis-post-493195
<![CDATA[Re: 301 redirect htaccess help]]> https://forums.modx.com/thread/89562/301-redirect-htaccess-help#dis-post-492527 Quote from: Tyreal2012 at Mar 13, 2014, 08:49 AM
RewriteRule ^web-design.html$ http://www.domainname.com/new-web-design.html [R=301,L]

Thats what i use smiley

Perfect! works like a charm! thanks ;-)]]>
canman Mar 13, 2014, 04:44 AM https://forums.modx.com/thread/89562/301-redirect-htaccess-help#dis-post-492527
<![CDATA[Re: 301 redirect htaccess help]]> https://forums.modx.com/thread/89562/301-redirect-htaccess-help#dis-post-492519 http://www.domainname.com/new-web-design.html [R=301,L]

Thats what i use smiley
]]>
Tyreal2012 Mar 13, 2014, 03:49 AM https://forums.modx.com/thread/89562/301-redirect-htaccess-help#dis-post-492519