Hi,
I know how to do 301 from one domain to second, but is there a possibility to do 301 redirection from domain to specific page ?
for eg. domain.com -> seconddomain.com/specific_page ? Yes,
How are you currently doing your 301 redirects? If you're using apache try adding this to your .htaccess file:
redirect 301 / http://www.newdomain.com/yourpage.html Quote: Originally Posted by buggie Hi,
I know how to do 301 from one domain to second, but is there a possibility to do 301 redirection from domain to specific page ?
for eg. domain.com -> seconddomain.com/specific_page ? Yes, It is possible.
Try this below code
Solution1 301 redirect
RewriteEngine on
RewriteBase
RewriteCond %{HTTP_HOST} ^www\.domain\.com$
RewriteRule ^$ domain.com/landingpage.html [R=301,L]
Another solution for canonical link
give this code to both pages
<link rel="canonical" href=http://www.v7n.com/forums/seo-forum/"http://www.domain.com/landingpage" />
search engines indexing one URL. ok, thanks guys! Solution1 is a tip i was looking for... The definition of a 301 redirect is that a 301 status code is returned from the requested resource.
This means it has to be done on the server side by the code that responds to the request.
Different servers offer alternate ways to trigger 301 responses. Apache has the .htaccess file, IIS now offers .Net based routing and most server side languages provide ways to set the status headers of responses.
I guess you would class them all as "coding types"?
I know how to do 301 from one domain to second, but is there a possibility to do 301 redirection from domain to specific page ?
for eg. domain.com -> seconddomain.com/specific_page ? Yes,
How are you currently doing your 301 redirects? If you're using apache try adding this to your .htaccess file:
redirect 301 / http://www.newdomain.com/yourpage.html Quote: Originally Posted by buggie Hi,
I know how to do 301 from one domain to second, but is there a possibility to do 301 redirection from domain to specific page ?
for eg. domain.com -> seconddomain.com/specific_page ? Yes, It is possible.
Try this below code
Solution1 301 redirect
RewriteEngine on
RewriteBase
RewriteCond %{HTTP_HOST} ^www\.domain\.com$
RewriteRule ^$ domain.com/landingpage.html [R=301,L]
Another solution for canonical link
give this code to both pages
<link rel="canonical" href=http://www.v7n.com/forums/seo-forum/"http://www.domain.com/landingpage" />
search engines indexing one URL. ok, thanks guys! Solution1 is a tip i was looking for... The definition of a 301 redirect is that a 301 status code is returned from the requested resource.
This means it has to be done on the server side by the code that responds to the request.
Different servers offer alternate ways to trigger 301 responses. Apache has the .htaccess file, IIS now offers .Net based routing and most server side languages provide ways to set the status headers of responses.
I guess you would class them all as "coding types"?