sippytom Posted December 16, 2014 Share Posted December 16, 2014 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 More sharing options...
pwired Posted December 16, 2014 Share Posted December 16, 2014 Check your host on .htaccess restrictions. You might have to comment out some lines in your .htaccess file your host does not accept. Also check the rewrite base part in your .htaccess file. Link to comment Share on other sites More sharing options...
sippytom Posted December 16, 2014 Author Share Posted December 16, 2014 I am using the default .htaccess that came with process. I am very new to this hosting etc. Before this all I did was create html pages and put them up. Tom Link to comment Share on other sites More sharing options...
pwired Posted December 16, 2014 Share Posted December 16, 2014 There are easy ways to debug this. Here are some topics dealing with it: https://processwire.com/docs/tutorials/troubleshooting-guide/page3https://processwire.com/talk/topic/2177-server-error-500/#entry20436https://processwire.com/talk/topic/2439-htaccess-issue/#entry38495https://processwire.com/talk/topic/1598-installation-problem/ Link to comment Share on other sites More sharing options...
BFD Calendar Posted December 16, 2014 Share Posted December 16, 2014 It's also worth to check which PHP version you host is using. I had to add an extra line in .htaccess to set it to PHP 5.4 before I had my site working. Link to comment Share on other sites More sharing options...
sippytom Posted December 17, 2014 Author Share Posted December 17, 2014 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 More sharing options...
adrian Posted December 17, 2014 Share Posted December 17, 2014 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 More sharing options...
sippytom Posted December 17, 2014 Author Share Posted December 17, 2014 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now