By click2kemah on
I've created a subdirectory for a client on my site. However, I have to type in the full url like http://mysite.com/client/index.html instead of just typing http://mysite.com/client. Drupal won't show the page if I don't type in the exact file that I'm trying to read. I've been told this is an htaccess problem. I've searched, created file after file and tried them on my server, but no luck. Anyone have any assistance they could spare?? I've been working on this issue for hours now with no solution.
Comments
...
Drupal comes with an .htaccess file, make sure that's placed properly in the client folder.
Somewhere in that file, find this passage and follow it's instructions:
So I need the Drupal htaccess
So I need the Drupal htaccess uploaded to each client subdirectory i make too?
I tried to uncomment the tag for RewriteBase /drupal. After I did that, I couldn't access ANY of my nodes :(
...
wait a second, I think you need to clarify your setup a little bit in more detail here.
Do you have, by any chance a drupal install sitting at mysite.com and want now a new drupal install at mysite.com? in which case, bad idea. Either learn to setup a multisite install or create subdomains for your clients.
I'm sorry. Let me explain
I'm sorry. Let me explain what I'm doing. I have a site at www.click2kemah.com. I have clients in subfolders within the Drupal root folder. The site click2kemah.com is, itself a subdirectory. So my drupal is in a subdirectory and I'm adding clients into subs of THAT. I'm running Drupal 6.19. When I try to go to my clients site by typing http://click2kemah.com/myclient/ I get a Page Not Found error in Drupal. I have to type the full url including the index.html in order for the page to show up. I was told by my host that this could be resolved within the htaccess file...but I don't have enough experience with that to know where and what to change.
...
so, your clients site is not Drupal but simple and basic html - this is getting ugly, you really should be moving this to a subdomain.
it may appear as a subdirectory to you, but it's not really to us. you've got to distinguish the root directory and the folder structure you've access to from your host. in that you might see a public_html, private_html, secure_ftp, cgi_bin, ... (or similar) and the public_html folder normally corresponds with your web root.
Now, if your host provides you with the resources, you can create another subdirectory (myclient) there and not in public_html and set up a subdomain and set the root of that subdomain this new folder.
Ouch. That might be my
Ouch. That might be my problem. Under the public_html, I have an SMF forum site installed. Then, in a directory, I have my business site. Inside THAT I'm making client folders
**EDIT**
OOOK..that's the weirdest thing. Just on a hunch I changed the file in that directory from index.html to index.php...AND IT WORKED. Now I'm able to type in the url www.mysite.com/client and it pulls the sub site open just fine
...
in which case DirectoryIndex is the culprit. Didn't know that Drupal sets this to only index.php, meaning if you'd wanted to use index.html putting an htaccess file with this:
DirectoryIndex index.html
should get it working.