Jump to content

error when hosting my site


sippytom
 Share

Recommended Posts

Hi All,

I have created my web site locally and all went well.

I then transferred the directories to my web site including the .htaccess file.

I also transferred the mysql files.

All went well and my site is up and going.

THEN

I have another site hanging off my site.

I have a directory in public_html called theory.

This site has it's own address and before this worked well.

Now with .htaccess on my site the remote address cannot be called.

It cannot find www.example.com/theory

Renaming the access file fixes this but then my process site will only show the root page.

Any idea what I need to change in the .htaccess file to get both sites working.

Thanks in advance.

Tom

Link to comment
Share on other sites

Had a good look around the suggestions.

Still no luck.

Have made up a demo .htaccess file

  RewriteBase /
  # RewriteBase /pw/
  # RewriteBase /~user/
Options +FollowSymLinks

My site open the index.php ok.

The remote site which is in a folder on my site loads ok.

I can then on the remote site go to any page.

On firefox it does say "www.example.com/notes" etc.

But it is being called from "www.fred.com" - examples only.

However on my process side the main page is ok but get a 404 if I try to access any pages.

If I include the full .htaccess my site is ok the the remote site is just blank, NO error codes.

Tom

PS.

Could I put all the process stuff into a subfolder including the .htaccess file and just have the index.php in the root.

Then have a "RewriteBase /pw/" in the root folder?

Just a thought.

Link to comment
Share on other sites

Hi Tom,

I don't fully understand what you have done, but if I was trying to run two sites with one in a subfolder of the other I would also set up a subdomain: theory.example.com and an apache virtual host that points to that subfolder when called via the subdomain. Is there any reason you need the url to be www.example.com/theory rather than theory.example.com?

You could do some redirects if needed.

Link to comment
Share on other sites

Hi Adrian,

Here is the way I have it going.

I have www.mysite.com - This is my site using processwire (.htaccess not set up)

Also on this site I have a folder with my sisters web site (folder theory)

Her url points at the moment to "www.mysite.com/theory"

At the moment her site works well. (thank goodness)

Is it then that when I use the .htaccess the redirection to her cannot be found i.e. "www.mysite.com/theory"

Hope this makes some sense.

Tom

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...