iEntry 10th Anniversary Forum Rules Search
WebProWorld
Register FAQ Calendar Mark Forums Read
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

Share Thread:

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-10-2006, 06:03 AM
WebProWorld Member
 
Join Date: Nov 2005
Posts: 41
seolearner RepRank 0
Default Instructions for Robot

Hi everyone,
Here is something that I want to ask. I am working on a website, firstly it was .php based, now the 'client' wants to convert it into html pages. What I have done is I have redirected .php to the html.
Now my question is will the robots access html code or the php code?! Will I have to apply <meta name="robots" content="noindex,nofollow">, so that my php code is not accessed. But if I apply this meta tag then as per my knowledge, as I have redirected my php pages to html then robots won't be able to crawl the html version also. Am I right??
Please help me!!
__________________
The word IMPOSSIBLE itself says IM POSSIBLE
Reply With Quote
  #2 (permalink)  
Old 03-10-2006, 11:32 AM
WebProWorld 1,000+ Club
 
Join Date: Sep 2003
Location: Texas
Posts: 1,156
flood6 RepRank 0
Default

First make sure you've removed all mention of the php pages from the site (including navigation, sitemaps, etc.). THen set up a 301 redirect from the old php pages to the new html pages.

This will give the site the best chance for a smooth transition. The spiders won't even read the old pages (you can and should remove them to a backup somewhere), they will just get the 301 and move on to the new pages. No need to worry about changing meta tags.

Good luck.
Reply With Quote
  #3 (permalink)  
Old 03-10-2006, 01:27 PM
WebProWorld 1,000+ Club
 
Join Date: Jul 2003
Location: Toronto, Canada
Posts: 1,782
cyanide RepRank 0
Default Re: Instructions for Robot

Quote:
Originally Posted by seolearner
What I have done is I have redirected .php to the html.
Why did you do that?
html can be read just fine in a .php page
You are wasting alot of time making these conversions.
__________________
|
Web Hosting Guru
| Need Help For Your Forum?
Reply With Quote
  #4 (permalink)  
Old 03-16-2006, 01:19 AM
WebProWorld Member
 
Join Date: Nov 2005
Posts: 41
seolearner RepRank 0
Default Re: Instructions for Robot

Quote:
Originally Posted by cyanide
Quote:
Originally Posted by seolearner
What I have done is I have redirected .php to the html.
Why did you do that?
html can be read just fine in a .php page
You are wasting alot of time making these conversions.
Sorry for delay in replying........Actually net was down.
Now coming to the point..I had to do this as my client wanted me to convert the pages to html. I did that but am afraid that webcrawlers or spiders dont crawl the php page, though I have removed them from net/website.
__________________
The word IMPOSSIBLE itself says IM POSSIBLE
Reply With Quote
  #5 (permalink)  
Old 03-16-2006, 01:24 AM
WebProWorld Member
 
Join Date: Nov 2005
Posts: 41
seolearner RepRank 0
Default

Quote:
Originally Posted by flood6
First make sure you've removed all mention of the php pages from the site (including navigation, sitemaps, etc.). THen set up a 301 redirect from the old php pages to the new html pages.

This will give the site the best chance for a smooth transition. The spiders won't even read the old pages (you can and should remove them to a backup somewhere), they will just get the 301 and move on to the new pages. No need to worry about changing meta tags.

Good luck.
Thanks, for your kind advice. It has really relaxed me. But are you sure that I dont need to change any thing in the meta-tags!
And do i need to write in my robot.txt :- Disallow: /foldername, in which all my php files are placed.
I have did as you said
__________________
The word IMPOSSIBLE itself says IM POSSIBLE
Reply With Quote
  #6 (permalink)  
Old 03-16-2006, 11:40 AM
WebProWorld 1,000+ Club
 
Join Date: Sep 2003
Location: Texas
Posts: 1,156
flood6 RepRank 0
Default

There is nothing for you to do with the meta tags in this case. Just remove the old pages to a backup folder somewhere so they can't be seen at all. The new pages should have standard meta tags optimizes for SEO, but should be oblivious to any redirection that is going on.

If you ran the 301 redirect from the old php pages to the new html pages and removed the old pages, then you're done. You can see the effect by trying to visit one of the old php pages with your browser, you're immediately redirected to the new page.

Next time, I'd remind your client that he's paying you to worry about his SEO so he doesn't have to. PHP pages get indexed just as easily and rank every bit as well as html. I can't remember the last time I built a static html page and all my sites are doing just fine.
Reply With Quote
  #7 (permalink)  
Old 03-16-2006, 07:00 PM
WebProWorld New Member
 
Join Date: Feb 2006
Location: San Jose, Ca
Posts: 2
HansAKoch.com RepRank 0
Default PHP to HTML

I understand why a client asked this of you.

Several client of mine asked the same.

Usually a common php page is a contact page where a form is at. If a client want to update an address or contact number they may have someone in house that only knows basic html.

Any other ideas why a client would want it changed?
Reply With Quote
  #8 (permalink)  
Old 03-17-2006, 04:59 AM
WebProWorld New Member
 
Join Date: Oct 2005
Posts: 5
hphoto RepRank 0
Default what about using .htaccess

Quote:
I am working on a website, firstly it was .php based, now the 'client' wants to convert it into html pages.
I suppose that the client understants that by changing the urls, from php extension to .html extension, he is going to lose the Google ranking for all those pages .

If the previous pages were dynamic php pages,
for example, categories.php?id=45, that he wants to be changed to categories45.html, then this is a good idea.

You can do this, very easily from .htaccess.
The line in the .htaccess file, for 301 redirect would be:


RewriteRule ^categories.php?id=([0-9]+) /categories$1.html [R=301]

Hope it helps,
Reply With Quote
  #9 (permalink)  
Old 03-17-2006, 05:13 AM
WebProWorld Member
 
Join Date: Nov 2005
Posts: 41
seolearner RepRank 0
Default Re: what about using .htaccess

Quote:
If the previous pages were dynamic php pages,
for example, categories.php?id=45, that he wants to be changed to categories45.html, then this is a good idea.

You can do this, very easily from .htaccess.
The line in the .htaccess file, for 301 redirect would be:

RewriteRule ^categories.php?id=([0-9]+) /categories$1.html [R=301]

Hope it helps
Thanks for your advice, but my question is till there.. do i really dont need to add the statement in my robot.txt:Disallow:/cgi-bin (This is where the .php files are located).
Eagerly waiting for reply.
__________________
The word IMPOSSIBLE itself says IM POSSIBLE
Reply With Quote
Reply

  WebProWorld > Search Engines > Search Engine Optimization Forum

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 09:49 AM.



Search Engine Optimization by vBSEO 3.3.0