|
|
||||||
|
||||||
| Index Link To US Private Messages Archive FAQ RSS | ||||||
| Search Engine Optimization Forum SEO is much easier with help from peers and experts! The WebProWorld SEO forum is for the discussion and exploration of various search engine optimization topics. Any non (engine) specific SEO or SEM topics should go here. |
Share Thread: & Tags
|
||||
|
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
Hi All,
I have changed folder names for some of my website pages. I have twice before used a redirect option from my cpanel (I don't undertand much about servers and did not want to mess with the .htaccess till necessary), it works fine, the pages are redirected. I also get an option of choosing permanent or temporary redirect, here I choose the permanent option. All this worked until I tried doing a redirect from http://site.com to http://www.site.com. This doesn't work, when I try this the site goes down. So..I downloaded my .htaccess file. Now this is the code they are using for the redirects. ^/website-reviews/mypage.html$ http://www.mysite.com/web-site-services/mypage.html RedirectMatch permanent Just want to confirm, is this a proper 301? It is different from the one i have found on this website and others, which is, RewriteEngine On RewriteCond %{HTTP_HOST} ^yoursitename.com$ RewriteRule ^(.*)$ http://www.yoursitename.com/$1 [R=301,L] Should I use the more common one (2nd one) instead or leave is as it is? In my .htaccess i don't see a RewriteEngine On command anywhere Also, if I have to switch the commands, will this same code work for the pages I want to redirect too, other than the domain redirect, like RewriteEngine On RewriteCond %{HTTP_HOST} ^yoursitename.com$ RewriteRule ^(.*)$ http://www.yoursitename.com/$1 [R=301,L] RewriteCond % ^/website-reviews/mypage.html$ RewriteRule ^(.*)$ http://www.mysite.com/web-site-services/mypage.html$1 [R=301,L] It seemed logical to remove the {HTTP_HOST} for the page redirects, should I keep it? I also found this somewhere on the forum, to rediect pages RewriteEngine On Redirect 301 /website-reviews/mypage.html http://www.yourdomain.com/blog/zonk.html and this to redirect directories here RewriteRule ^olddir/(.*)$ http://new.com/newdir/$1 [R=301,L] just different syntax...all of them!! To me it all looks like gibberish....very confused, can someone please guide me on how I can handle this. don't want to crash my servers or freak the spiders out...they don't come around much anyway :) Also since I renamed a folder...is it possible to just redirect the folder so that the contained pages are automatically redirected? thank you |
|
||||||
|
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
Brian.
__________________
ToolBarn.com, an Internet Retailer Top 500 and Inc. 500 Company | Tool Parts | Pet Supplies |
|
|||
|
thanks Brian,
I added this code at the bottom of my current file (with the original cpanel code) & the http:// redirect is working fine, and so are most the individual page redirects RewriteEngine On RewriteCond %{HTTP_HOST} ^yoursitename.com$ RewriteRule ^(.*)$ http://www.yoursitename.com/$1 [R=301,L] Since of the pages that I have moved are about the only pages on my website currently getting any traffic from search engines, I just want to confirm, that the original code is ok SE wise, i mean it's a proper 301 redirect, since the code doesn't mention "301" anywhere, that's - ^/website-reviews/mypage.html$ http://www.mysite.com/web-site-services/mypage.html RedirectMatch permanent you may have already commented on this, just want reconfirm, since i have seen a lot said about choosing the right method to redirect you pages. that was good advice about the back up, usually do it, but then just at the last moment, it often silps from memory. thanks again, appreciate the help. |
|
|||
|
If you want to make sure, use this tool to see what the redirect really is. Since it says permanent, that is a 301, but it's usually a good idea to test it anyway.
Brian.
__________________
ToolBarn.com, an Internet Retailer Top 500 and Inc. 500 Company | Tool Parts | Pet Supplies |
![]() |
|
| Thread Tools | |
| Display Modes | |
|
|
|
WebProWorld |
Advertise |
Contact Us |
About |
Forum Rules |
MVP's |
Archive |
Newsletter Archive |
Top |
WebProNews
WebProWorld is an iEntry, Inc. ® site - © 2009 All Rights Reserved Privacy Policy and Legal iEntry, Inc. 2549 Richmond Rd. Lexington KY, 40509 |