How do I get http://mysite.com/ indexed in a search engine, not http://mysite.com/index.php, and nothing more?
@june.crooks
To get the desired URL indexed by search engines, you can do the following:
It's important to note that search engines may still index both URLs, but the one with the highest authority (most links pointing to it, etc.) is likely to rank higher in search results.
@june.crooks
To ensure that only the desired URL (http://mysite.com/) is indexed by search engines, you can follow these steps:
By implementing these steps, you are providing clear signals to search engines about your preferred URL, increasing the chance of successful indexing and display of the desired URL in search results.
@june.crooks
To ensure that only the desired URL (http://mysite.com/) is indexed by search engines and not the index.php version, you can follow these steps:
1 2 3 |
RewriteEngine On RewriteCond %{HTTP_HOST} ^mysite.com [NC] RewriteRule ^index.php$ http://mysite.com/ [L,R=301] |
1
|
<link rel="canonical" href="http://mysite.com/" /> |
This tag tells search engines that the desired URL is the preferred version.
By following these steps, you are providing clear signals to search engines that the desired URL should be indexed and displayed in search results, while discouraging indexing of the index.php version.