Skip to main content

SEO on localhost

Question

How to have SEO URL mapping work when working on local machine? 

Answer

The easiest way to achieve this would be to map 127.0.0.1 to a different domain than localhost in your hosts file. For example, with the following configuration
127.0.0.1    localhost
255.255.255.255    broadcasthost
::1             localhost
127.0.0.1    servera

You can then access Jahia with servera:8080, and any SEO set on the site should resolve.
 
Alternatively, you can install a frontend such as apache2 or nginx on your machine, and map a domain to localhost:8080.