homepage Welcome to WebmasterWorld Guest from 54.227.41.242
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Visit PubCon.com
Home / Forums Index / Marketing and Biz Dev / SEM Research Topics
Forum Library, Charter, Moderators: phranque

SEM Research Topics Forum

    
Don't lose SE indexed pages
Redirect
SeoPromoter




msg:819046
 3:27 am on Sep 30, 2005 (gmt 0)

Hello!

I have a site in html, it has 65 indexed pages in Google. We will redesign the site changing the pages extension from html to php.

For example, index.htm ---> index.php.
index.htm is indexed in google while index.php isn't.

Is there any way to make this chamge without losing the indexed pages? Is there any way to tell the SE which pages should visit without be banned (using redirection).

Thanks, Facundo

 

JohnCanyon




msg:819047
 8:42 pm on Oct 1, 2005 (gmt 0)

You could just make .htm executable by .php.

To accomplish this you will need access to either .htaccess or php.conf (if you are using apache 2).

for .htaccess you can add the following.
<Files *.htm>
AcceptPathInfo on
SetOutputFilter PHP
SetInputFilter PHP
</Files>

php.conf
<Files *.htm>
SetOutputFilter PHP
SetInputFilter PHP
LimitRequestBody 524288
</Files>

J

netmarketingsolution




msg:819048
 9:17 pm on Oct 3, 2005 (gmt 0)

That trick smell cloaking?!.
instead is not. Use it carefully.

frobn_1




msg:819049
 1:10 am on Oct 6, 2005 (gmt 0)

Here is another way that will get php to execute in a html file. It will work on most servers but not all.
Put in .htaccess

RemoveHandler .html .htm
AddType application/x-httpd-php .php .html

You can also use a rewrite rule

I am not sure that this is correct, perhaps someone else can verify it.

RewriteRule (.*)\.html$ $1\.php

TymArtist




msg:819050
 9:40 pm on Oct 18, 2005 (gmt 0)

I'm actually in the process of redesigning my site in the exact same way, with the exact same problem - i want everything .php rather than .html, but i don't want to end up with page not found errors for the listings in google amongst other search engines.

do you feel that redirects in .htaccess is considered cloaking or frowned upon by the directories and search engines, even if it is just a temporary solution?

frobn_1




msg:819051
 10:04 pm on Oct 18, 2005 (gmt 0)

do you feel that redirects in .htaccess is considered cloaking or frowned upon by the directories and search engines, even if it is just a temporary solution?

RewriteRules are not cloaking and are not redirects as they do not redirect the page, they only change the url name. Cloaking is used to redirect search engines to a different page. RewriteRules are commonly used to make dynamic urls user friendly. I have never had problems with them and I haven't heard of any problems with search engines.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Marketing and Biz Dev / SEM Research Topics
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved