I am using Apache virtual hosts on ubuntu 14.04 64 bit on a 512MB droplet. I have 3 very small sites setup right now. I have set up the main site to always go to www.domain.com even if you type in domain.com using .htaccess file. Another site i am hosting (www.sheardlitearabians.com) does not seem to follow the .htaccess file, and you can access it using the preceding www or without.
My real issue is if you go to the site with the site is if you go to it sans www, and click on sales, for some reason it puts the www. in front and puts the slash that is supposed to go in front of sales, behind it! ex: http://www.sheardlitearabians.comsales.html/
i downloaded this site from my previous shared host.
any idea what’s going on here??
Thanks!
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.
can you post your htaccess file so we can take a look?