Should I enable clean URLs using the temporary URL?

adambackstrom 7 years ago in Blogs and Content Management Systems / Drupal 7 0
I have a temporary url for my site as it is not ready to go live on my domain. I would like to enable clean urls while still using the temporary url. This is important as I am building Drupal menus and if I enable clean urls after the menus are built they may not work correctly. Can I enable clean urls to work both for my registered domain name AND my temporary url?
Hello Adambackstrom, Thanks for the question! If you are developing a website and you want to avoid complications with the URL after you go live, you should be using what's called a HOSTS FILE modification. This way, you can simply use your domain name and set it so that the computer will think the URL is resolving to our hosting server. You can actually specify the IP that a URL will resolve to. So, set your WWW.domain_name.com to resolve to our server and then leave the non-WWW name alone. That way, if you type www.domain_name.come, it will resolve to the server here. This ONLY changes the URL for YOUR computer (or wherever you're developing). That way, you can see the website resolving normally with the non-WWW version and see the results of your development work using the WWW version of the URL. You can also set the search engine friendly URLs to use the proper domain name and avoid having to make changes after you're ready to go live. Click on the link above and you'll see the instructions on how to set your HOSTS file. Please let us know if you require any further assistance. Regards, Arnel C.