• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
admin and main and migrating to server with limited access

I have a CI site built on my VPS that I'd now like to transfer to my client's host, where he has no shell access, no apache config access (well, .htaccess but not httpd.conf or other vhost config).

Here's the dilemma: I built mysite.com and admin-mysite.com to both point to the same document root. On Apache IRC I was recently told not to do this but never told why.

So, the reason why I did this is to make things simpler for sharing code. The domain and the subdomain share images, javascript, stylesheets, and mp3s, etc.

I also use the common mod_rewrite method known here for removing index.php from the URL.

I have this working on my VPS by putting the mod-rewrite and, in the case of admin, the basic .htaccess authentication, inside the vhost directives in httpd.conf. Each domain has a differently named "index.php" file. One is main.php and the other is admin.php. AFAIK, I can't accomplish all the mod-rewrite, the different index filenames, and the http authentication for admin, with just .htaccess.

Can someone please suggest the simplest route to take? I've been stumped on this for a long time and now the time has come to make the migration and I'm stuck.


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.