Index.php Not Showing Up Properly In Facebook And Search Engines
I have recently just designed a website and was forced to call out a small amount of code in PHP, which is located in the header, which forced me to rename the file index.php , and when I try to advertise it on Facebook, I get nothing, and I don't see much of it on Search Engines...
You can view the website here... http://www.thecommonwealthmembers.com/index.php
开发者_JAVA技巧Thank you very much all, Aaron Brewer
If it's a brand-new domain, it can take a couple weeks to get into the search engines. A web spider isn't going to know it's a PHP page, so that shouldn't make a difference.
You might want to set the server to redirect the base domain to the "www" host, but that's a minor optimization. You should check out Google's webmaster tools which may help provide more info to get your site indexed a bit quicker.
EDIT: rewrite example (if you do not use other hostnames besides www):
<IfModule mod_rewrite.c>
RewriteCond %{HTTPS} !=on
RewriteCond %{HTTP_HOST} !^www\..+$ [NC]
RewriteCond %{HTTP_HOST} (.+)$ [NC]
RewriteRule ^(.*)$ http://www.%1/$1 [R=301,L]
</IfModule>
i guess google hasn't yet index your website / domain name.
精彩评论