URL rewrite to force 'www' and '.html'


#1

For SEO, I need to force the URL to contain ‘www’ so my app always
appears in the browser as www.example.com and not ‘example.com’. I
also need the filename (ex. index.html) to appear completely, and not
be hidden.

Can someone give us some pointers on how to set this up? I understand
the first case involves .htaccess but I’m nervous about modifying that
without good guidance.

Thanks.


#2

adeel wrote:

For SEO, I need to force the URL to contain �www� so my app always
appears in the browser as www.example.com and not �example.com�.
For this you have to set a rewrite rule in Nginx or Apache. There is
plenty doc on the net.

I never heard that appending .html to URL will improve SE ranking.


Video tutorials for distance learners in french: http://www.digiprof.fr