![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I am convertig a site that has almost exclusively .html type pages, i.e. pages I build with NetObject Fusion. I have discovered the light, and now I am rewriting or converting those pages to use php. So the pages I currently have will no longer exist. That is if I now have a page at http://www.domain.com/apples.html it may soon become http://www.domain.com/apples or http://www.domain.com/apples.php or something else similar. What does this mean for my site and the search engines? I just started the site about 2 months ago, so I am not high in the search engines at all. I have been crawled a bit, but I don't think any of my pages are indexed. My site can be found in Google, and Yahoo, and MSN. I was thinking of leaving all of my current pages, with the html extension, on my site for a while, once I have done the conversion. Space is not an issue, and there aren't that many pages. Also I was thinking of redoing the links on the old pages to point to the new pges. Since I don't have that many old pages on the site, changing the links to point to new pages won't take long. Do I need to do leave the old pages out there for the search engines? Are there any steps I should take to make this process run smoothly? Thanks for any thoughts. |
#3
| |||
| |||
|
|
Assuming you're on an Apache server, ask your host if they support parsing of PHP within HTML files. If so, you would only need to add one line of code into a .htaccess file and place it in the domain root. Something like AddType x-mapp-php4 .html That way, you can leave all your pages as .html and any embedded PHP will still work just fine. In other words, http://example.com/apples.html *can* contain PHP, when using the above. |
#4
| |||
| |||
|
|
What happens though if I have a file named apples.php and one named apples.html? |
|
I was just wondering if ou know of any .htaccess tricks I can use to make php urls look and work better, for seo or otherwise. |
#5
| |||
| |||
|
|
On Thu, 14 Jul 2005 22:22:48 GMT, Tony <spamkill (AT) nospam (DOT) net> wrote: snip Assuming you're on an Apache server, ask your host if they support parsing of PHP within HTML files. If so, you would only need to add one line of code into a .htaccess file and place it in the domain root. Something like AddType x-mapp-php4 .html That way, you can leave all your pages as .html and any embedded PHP will still work just fine. In other words, http://example.com/apples.html *can* contain PHP, when using the above. Thanks for the quick post. I think we are using Apache, so I'll try your suggestion if we are. What happens though if I have a file named apples.php and one named apples.html? |
|
I don't think I will have too many of these, and since my current site is relatively small, I have few files with html extensions and thus I ought to be able to avoid this naming conflict. I am just curious as to what Apache will do with it. And while we are on the subject of Apache, .htaccess, etc, are there other tips of using php and .htaccess that I ought to know about. This question is obviously not a subject for this group, but I was just wondering if ou know of any .htaccess tricks I can use to make php urls look and work better, for seo or otherwise. |
#6
| |||
| |||
|
|
Assuming you're on an Apache server, ask your host if they support parsing of PHP within HTML files. |
#7
| |||
| |||
|
|
Rather my problem is that I have about 200 html files that have been spidered and hopefully are somewhere in the search engine innards for searchers to find. How do I keep from losing what little I have already gained from these pages. |
#8
| |||
| |||
|
|
AF <bscinc3000 (AT) Yahoo_NoSpam (DOT) com> wrote: Rather my problem is that I have about 200 html files that have been spidered and hopefully are somewhere in the search engine innards for searchers to find. How do I keep from losing what little I have already gained from these pages. 301 redirect to the php pages, see RedirectMatch (for Apache) |
#9
| |||
| |||
|
|
On 15 Jul 2005 03:07:56 GMT, John Bokma <john (AT) castleamber (DOT) com> wrote: AF <bscinc3000 (AT) Yahoo_NoSpam (DOT) com> wrote: Rather my problem is that I have about 200 html files that have been spidered and hopefully are somewhere in the search engine innards for searchers to find. How do I keep from losing what little I have already gained from these pages. 301 redirect to the php pages, see RedirectMatch (for Apache) I was thinking this but I held back to see what you guys would say. Can he do a generic or has he got to sit down and do one for each file? |
#10
| |||
| |||
|
|
I am convertig a site that has almost exclusively .html type pages, i.e. pages I build with NetObject Fusion. I have discovered the light, and now I am rewriting or converting those pages to use php. So the pages I currently have will no longer exist. That is if I now have a page at http://www.domain.com/apples.html it may soon become http://www.domain.com/apples or http://www.domain.com/apples.php or something else similar. What does this mean for my site and the search engines? I just started the site about 2 months ago, so I am not high in the search engines at all. I have been crawled a bit, but I don't think any of my pages are indexed. My site can be found in Google, and Yahoo, and MSN. I was thinking of leaving all of my current pages, with the html extension, on my site for a while, once I have done the conversion. Space is not an issue, and there aren't that many pages. Also I was thinking of redoing the links on the old pages to point to the new pges. Since I don't have that many old pages on the site, changing the links to point to new pages won't take long. Do I need to do leave the old pages out there for the search engines? Are there any steps I should take to make this process run smoothly? Thanks for any thoughts. |
![]() |
| Thread Tools | |
| Display Modes | |
| |