Forum Moderators: phranque
I am just trying to make www.example.com more SEO friendly.
Let me if these steps are right:
First: You use XENU to chech what urls in your own site might be pointing to nowhere, right? Then you fix those urls.
Second: Cleaning undesired urls from the list showed by google when site:www.example.com is typed in google search box. Question: Does this cleaning help? I mean, should google just have those urls that you want people go to?
Then, for this second step, how do you remove these do this unwanted urls?
For example, let's say I see www.example.com/functionexists.php when I type site:www.example.com in google. But, Is the fact of this element "www.example.com/functionexists.php" appearing on this google list something to improve or which is bad for SEO? How I remove that from the list presented by google? What would I have to write in the .htaccess file?
Should writing sentences like
RewriteRule ^functionexists.php$ http://www.example.com/%1/ [L,R=404,NC]
in the .htaccess file help to let google know that you want the correspondning entry deleted from the listing it shows?
To end with,
do you suggest any other thing for these thing of SEO purposes besides adjusting title, description and keywords tags?
Thanks
[edited by: jdMorgan at 7:14 pm (utc) on Jan. 2, 2010]
[edit reason] spelling of 'example.com' [/edit]
They will list it if they find *any* link to it, from anywhere (your site or any other site).
I wouldn't worry about it unless it shows up in 'real searches' for products/services/topics realted to your site.
The code above will only work on Apache 2+ and not on Apache 1.x. for Apache 1.x, a similar solution is to internally rewrite the request to a filepath that does not exist and will never exist.
However, I would *not* recommend doing it either way unless you logically precede these rules with one or more RewriteCond(s) to exclude anything but search engine spiders from being given a 404/403/301. Otherwise, you may break your own site if anything on your site needs to access 'functionexists.php' via HTTP.
If not, then that script belongs in a directory that is not Web-accessible. And of course if you don't use it at all, then it should be removed from the server.
Jim