How do I get http://mysite.com/ indexed in a search engine, not http://mysite.com/index.php, and nothing more?

by june.crooks , in category: SEO , 2 months ago

How do I get http://mysite.com/ indexed in a search engine, not http://mysite.com/index.php, and nothing more?

Facebook Twitter LinkedIn Telegram Whatsapp Pocket

1 answer

Member

by dudley , 2 months ago

@june.crooks 

To get the desired URL indexed by search engines, you can do the following:

  1. Use a permanent (301) redirect from the index.php URL to the desired URL
  2. Update any internal links to the desired URL
  3. Add the desired URL to your sitemap and submit it to search engines
  4. Use the "rel=canonical" tag on the index.php URL to indicate the preferred URL
  5. Add the desired URL to Google Search Console and monitor it for crawl errors or indexing issues.


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.