I have a site that Google seems to not be finding because all of my pages are .php including my index page. I’m really lost on this subject and have not had this happen before. Can anyone help me out on this matter?
Do I need something called 301 re-direct?
freewaytalk mailing list
Update your subscriptions at:
Okay, see if adding this to your .htaccess file (up to and including creating one of those if it does not already exist) makes any difference. Remember to turn on the Show Hidden Files option in your SFTP application, so you can see it – files whose name begins with a dot are hidden by default in Unix filesystems.
If you add these lines, and the server immediately breaks, just back out the changes and re-save the file. .htaccess files are nice that way – they are loaded on each request, not once per server restart. If you already have an .htaccess file in there, post its contents on a Gist, so we can see what’s going on in there. You can delete Gists later, unlike e-mails to this list, which have a half-life similar to that of carbon.
On Feb 29, 2016, at 2:22 PM, billy kimmel email@hidden wrote:
One of my clients hired a SEO consultant, pain in my ass, and he said that I had a bad default Url. Google is seeing two pages.
Yes, the only pages that will hide now are the “index” pages, so if you had sub-folders in your site, and each of them had an index.php, then it would do the same trick there, I think. It’s important to note that it won’t do anything (in its current form) to index.html pages, so you may need to look at that.
Key learning for you: The issue is not PHP or not, it’s index page vs directory name. And really, it’s not even a matter of preferring the / instead of /index.whatever – it’s a matter of not having the same exact page at two different URLs. If you ask Apache, it would prefer that you always use the index.html or whatever extension, and never link to a bare folder. Apache has to engage its content negotiation module and hunt and peck through the filesystem when you do the latter, so it takes a minuscule extra amount of time to fulfill the request.
On Feb 29, 2016, at 3:16 PM, billy kimmel email@hidden wrote:
I imaging I won’t see the error go away in Analytics for a fews days?