I have a multilingual website currently on localhost. I want to add the alternate links to each page like this: rel="alternate" hreflang="x". How do i do that? What about the canonical urls? I have already installed SEO suite module enabled.
You might want to try Menu attributes module.
This simple module allows you to specify some additional attributes for menu items such as id, name, class, style, and rel.
The module currently allows you to set the following attributes for each menu item:
You can use Meta Tags module for canonical links.
The Meta tags module allows you to automatically provide structured metadata, aka "meta tags", about your website. In the context of search engine optimization, when people refer to meta tags, they are usually referring to the meta description tag and the meta keywords tag that may help improve the rankings and display of your site in search engine results.
Meta tags have additional uses like the Open Graph Protocol used by Facebook, specifying the canonical location of content across multiple URLs or domains.
The Internationalization contributions module says that it adds the
hreflang="x" to multilingual pages:
Internationalization contributions is a set of modules that are add ons for Internationalization module to provide compatibility with other contributed modules or some other features.