Welcome Guest, Not a member yet? Register   Sign In
Whats the best way to put your site on an address with no folder reference
#1

[eluser]NachoF[/eluser]
say I have my site right now in
Code:
http://localhost/my_ci_site_folder
but I want it to be at
Code:
http://localhost
The only way i have been able to do this is changing two lines in my httpd.conf to instead of starting at htdocs folder it starts at htdocs/my_ci_site_folder

....
I know this is probably pretty obvious but I want to be sure Im doing it the most proper way.
#2

[eluser]Michael Wales[/eluser]
You could do exactly what you are already doing, you could just ignore it (really, it's localhost, who cares), you could move all your files up one directory (not likely if you work on multiple sites), you could define VirtualHosts and store your files wherever you wanted.

Lots of options.
#3

[eluser]NachoF[/eluser]
[quote author="Michael Wales" date="1241817817"]You could do exactly what you are already doing, you could just ignore it (really, it's localhost, who cares), you could move all your files up one directory (not likely if you work on multiple sites), you could define VirtualHosts and store your files wherever you wanted.

Lots of options.[/quote]

No, the app is going to soon be moving to a real online web host... say:
Code:
www.somewebsite.com.ve
..... and I want to keep that structure... but if the only thing I have is a folder with the site Im trying to figure out what exactly will I do to not have to use
Code:
www.somewebsite.com.ve/my_ci_site_folder

I dont think I will have access to the httpdconf file of the webhost.
#4

[eluser]Michael Wales[/eluser]
You would just upload the contents of your ci_site_folder on your local machine to the server. index.php would be at the webroot of the server (htdocs).




Theme © iAndrew 2016 - Forum software by © MyBB