Welcome to WebmasterWorld Guest from

Forum Moderators: mademetop

Message Too Old, No Replies

Going from index.html --> index.php (with parameters)

Will the changes I'm making to a high ranking folder of my site hurt me?

8:23 am on Nov 3, 2010 (gmt 0)

Junior Member

10+ Year Member

joined:Dec 18, 2002
votes: 0

Okay, so I have a somewhat high ranking folder on my site. (my main page is PR5, and this directory is also PR5). Both the root, and the sub directory do well independently of each other. (for different keywords).

For all purposes, this directory only has one HTML file, the index.html file... all other sub pages are no followed.

Now I plan on first changing the index.html file to an index.php. Eventually with 2 parameters. If no parameters are entered, the index.php will load the EXACT same content as before with the index.html.

If however the two parameters are added to the url, then the page will modify the (no-followed) links to pass on those parameters for the other pages.

My concerns are:

1. Will the change hurt me simply because of the switch from .html to .php, even if the content located at www.xyz.com/widget is exactly the same.

2. If I do implement this, I will be getting a decent amount of links coming into the site, except those links will be of the form: "www.xyz.com/widget/index.php?name=NAME&url=http://URL.com". So would links coming into these longer URLs be beneficial for the /widgets/ folder itself, or would all the benefit be bestowed upon the longer URL with the parameters?

I was really hoping to get some benefits from the links coming in on case #2, so if the root of /widgets/ doesn't get the benefits, is there any way to change that?

I know it's a bit of an odd question, but I just wasn't sure how something like this might work. Thank you for any direction you might be able to give me.
2:43 pm on Nov 4, 2010 (gmt 0)


WebmasterWorld Administrator phranque is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Aug 10, 2004
votes: 67

first, the index.php should be configured as the default index directory document and left out of the url.

so these urls:
should be redirected to:
this url should be displaying the content assuming the default values for the "name" and "url" parameters.

if the changing values for the "name" and "url" parameters change the content displayed, these pages should be served and indexed at the canonical url for that content in the form of:
where all "reserved characters" in the url not used for their reserved purposes are url-encoded.

all non-canonical urls should be redirected with a 301 status code to the canonical url including:
- non-www
- missing trailing slash after "widget" directory
- default directory index document appears in the url path
- default parameter values
- parameters in non-canonical order