Jump to content

Subdomain Oddness


Recommended Posts

I read through the tutorial, and I'm pretty sure that I followed the steps, but I'm having some problems setting up http://webreports.isaacschlueter.com.

 

I created a folder at [root]/public_html/webreports

Then, set up the domain in CPanel's "Manage Subdomains" section.

I even created a new ftp user, and verified that he could only gain access to that folder.

I uploaded a file called "test.html" to [root]/public_html/webreports

 

When I go to http://webreports.isaacschlueter.com, I see the directory index, and my "test.html" is showing there. But, if I click on the link to the file, I get:

Bad Request

Your browser sent a request that this server could not understand.

 

Invalid URI in request GET /test.html HTTP/1.1

If I go to http://isaacschlueter.com/webreports/test.html then I see

this is a test.
which is correct.

 

Any ideas?

Link to comment
Share on other sites

Aha. Mod_rewrite strikes again. They call it the swiss army knife of URL manipulation, but it seems more like a blowtorch sometimes.

 

I'm using mod_rewrite to create cleaner URLs on http://isaacschlueter.com. Well, the settings in the public_html folder are propogating to the webreports subfolder, and making problems. I'll have to review the documentation on that stuff to have the same functionality in the subdomain. I think that I can get around it by declaring a RewriteBase in the .htaccess file in the subfolder. For now, I put this in my public_html/webreports/.htaccess file and it fixed it:

RewriteEngine Off
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...