URL best practices
-
Hi,
I have a problem here, I used http://www.vietnamvisacorp.com/faqs.html instead of http://www.vietnamvisacorp.com/faqs. Hence, http://www.vietnamvisacorp.com/faqs will be caused 404 page.
My question is should I change from faqs.html to faqs (no .html)?
Thanks in advance any advice?
-
I would be nice if you will have a friendly URLs.
You can use a rewrite rule to remove extensions. Try this: http://stackoverflow.com/questions/9489315/htaccess-rewrite-rule-to-remove-extensions
-
I would suggest using URLs without file extensions. It's cleaner, and easier for users to remember.
Because http://www.vietnamvisacorp.com/faqs is essentially http://www.vietnamvisacorp.com/faqs/index.html (if you don't use Apache to manipulate URLs), you'll need to have a redirect set up to avoid losing any visitor flow and incoming link juice. If you run an Apache web server, you'll want to do this in .htaccess.
-
Thanks my friends!