Forum Moderators: phranque

Message Too Old, No Replies

Using just index.php makes 3 pages?

         

Yamaha_R1

10:22 pm on Jun 24, 2005 (gmt 0)

10+ Year Member



On mysite.com I'm using index.php. Nothing more. But

[mysite.com...]
[mysite.com...]
[mysite.com...]
[mysite.com...]

Are all condisdered different pages to google. I don't understand. Especially since I'm using adsense, if you type in a variation it has not seen, the adds do not appear.

Now, all the posts i searched through, want to do something like covert www, or move to a root dir.

I just want google and other sites to think 'one page'.

I submitted [mysite.com...] (no slash or php) to a search engine, and it found NOTHING. I cant seem to get it right.

1. Whats the best one to use?
2. What would my code look like? Something like this?
3. Why do i have to do this? :(
4. When I implemented this code, I get internal server error.

RewriteEngine On
RewriteCond %{HTTP_HOST} ^mysite.com
RewriteRule (.*) [mysite.com...] [R=301,L]

Yamaha_R1

12:24 am on Jun 25, 2005 (gmt 0)

10+ Year Member



Oops. Did not realize 'mysite' exists. Also, owner edit button seems to have....dissapeared?

vincevincevince

12:26 am on Jun 25, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



First, you left it too long to edit (there is a short time frame)

Secondly, the way to do it is:

1/ Only ever refer to one of them. Link to the same one, submit the same one, use the same one.

2/ Set up redirection from the others to the one you have chosen if you continue to have problems.

3/ Make sure you have some links from other sites which are in Google etc. going towards the URL you want to get included.

Yamaha_R1

12:46 am on Jun 25, 2005 (gmt 0)

10+ Year Member



Yes, I will do. I want all of them to go to

[mysite.com...]

But thats not being recognized sometimes... I dont get it

Does googlebot not search an index.php when it searches a site?

vincevincevince

8:06 am on Jun 25, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Google has no problem searching and indexing an index.php, none whatsoever.

Make sure you have some unique content on the page, it's not just a graphical flash intro or copied from somewhere else, and do make sure you have incoming links from other indexed pages.

dcrombie

1:16 pm on Jun 25, 2005 (gmt 0)



You can't leave off the trailing '/' - most browsers and webservers will replace it automatically, but that's an extra call.

Yamaha_R1

7:29 pm on Jun 25, 2005 (gmt 0)

10+ Year Member



Okay.

I guess the only dilema is, with adsense, if you go to the different variations, it counts them as different pages for adsense.

So I will stick to one format for everything, and not channel the others or link to the others.

Maybe that will clear up itself.

py9jmas

7:50 pm on Jun 25, 2005 (gmt 0)

10+ Year Member



You can't leave off the trailing '/' - most browsers and webservers will replace it automatically, but that's an extra call.

That's true for sub-directories, ie http://www.example.com/directory but not for he plain domain name.
http://www.example.com doesn't exist. It's not a valid URL. If you connect to a webserver and send a GET request without any path, you'll get a 400 Bad Request response. When IE shows the URL as http://www.example.com, it's lying. It sent a request for / at a minimum.