|
|
||||||
|
||||||
| 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 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 |
|
|||
|
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. |
|
|||
|
Quote:
html can be read just fine in a .php page You are wasting alot of time making these conversions. |
|
|||
|
Quote:
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 |
|
|||
|
Quote:
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 |
|
|||
|
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. |
|
|||
|
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? |
|
|||
|
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, |
|
|||
|
Quote:
Eagerly waiting for reply.
__________________
The word IMPOSSIBLE itself says IM POSSIBLE |
![]() |
|
| 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 |