homepage Welcome to WebmasterWorld Guest from 54.161.166.171
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Google / Google SEO News and Discussion
Forum Library, Charter, Moderators: Robert Charlton & aakk9999 & brotherhood of lan & goodroi

Google SEO News and Discussion Forum

    
Unwanted URL Indexing - both .php and .html URLs
seochandan




msg:4453675
 10:59 am on May 15, 2012 (gmt 0)

Hello Every one, I am working on a website that has both html and php pages, but currently we concentrate on php pages.

The HTML pages need to redirect to the PHP version but the issue is about a hosting provider problem in .htaccess

I would like to know is there any alternate way to remove(redirect) html page to php. Additionally: these html page have some good amount of traffic.

[edited by: tedster at 11:26 am (utc) on May 15, 2012]
[edit reason] no personal URLs please [/edit]

 

tedster




msg:4453682
 11:33 am on May 15, 2012 (gmt 0)

I'm not sure what your .htaccess restrictions are, but there are several approaches to allow you to parse the html files through the php interpeter - and then you don't need to use both extensions. However, you do still need to use an .htaccess file.

For example, see: [webmasterworld.com...] Parsing HTML as PHP

Robert Charlton




msg:4462323
 4:28 am on Jun 7, 2012 (gmt 0)

It may be that the site needs a new hosting provider, perhaps not easily done where you are located... but probably the only way you're be able to control various aspects of the site that need controlling.

Planet13




msg:4462457
 1:59 pm on Jun 7, 2012 (gmt 0)

It may be that the site needs a new hosting provider...


I agree 100% with this.

If this is a BUSINESS, then you should treat it like a business.

rlange




msg:4462481
 2:51 pm on Jun 7, 2012 (gmt 0)

What about adding a canonical link to the
<head> of the HTML pages?

<!-- in /somepage.html -->
<link rel="canonical" href="http://www.example.com/somepage.php"/>

--
Ryan

lucy24




msg:4462591
 6:18 pm on Jun 7, 2012 (gmt 0)

The HTML pages need to redirect to the PHP version but the issue is about a hosting provider problem in .htaccess

It helps to be concrete. Are you saying that

#1 your host won't let you put rewrites or redirects into htaccess? (Technically, you can add them to your heart's content, but if the AllowOverrides directive in the config file doesn't oblige, the htaccess is simply ignored.)

#2 you have html and php versions of the identical page?

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Google / Google SEO News and Discussion
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