melissa_boyle Posted October 30, 2014 Share Posted October 30, 2014 Hi Guys, My colleague installed processwire on an ftp folder however it needs to be moved to subdomain and all url's (images, links and text) are wrong. At the minute it is pointing to projects/Processwire instead of the root. Can anyone help me with this please. I have tried to edit the htaccess file but have had no luck Thanks, Mel Link to comment Share on other sites More sharing options...
Mike Rockett Posted October 30, 2014 Share Posted October 30, 2014 Are your URLs hard-coded? If not, you only need to edit your site configuration by changing the domain(s). Link to comment Share on other sites More sharing options...
melissa_boyle Posted October 30, 2014 Author Share Posted October 30, 2014 Hi Mike, They aren't they are done as follows; <?php echo $config->urls->root; ?> However I can't see anything within the site config file to determine these paths (projects/Processwire). Thanks for your help, Mel Link to comment Share on other sites More sharing options...
melissa_boyle Posted October 30, 2014 Author Share Posted October 30, 2014 Hi Guys, My colleague has built processwire within an ftp folder when moving this to a subdomain all the css, images, url paths etc links are incorrect and going to the folder /projects/Processwire. This problem is only on the homepage. All internal pages are working ok. Does anyone have any ideas what is happening? The link is as follows; http://ultimatej.3sixtynearlythere.co.uk/ http://ultimatej.3sixtynearlythere.co.uk/about Any help would be greatly appreciated. Mel Link to comment Share on other sites More sharing options...
owzim Posted October 30, 2014 Share Posted October 30, 2014 I am not 100% sure but I guess a change in the .htaccess should do it:Find the line where RewriteBase is commented out, remove the comment and change it to: RewriteBase /projects/ProcessWire/ Edit: nope, that's not it. I am answering too fast today, sorry. Link to comment Share on other sites More sharing options...
kongondo Posted October 30, 2014 Share Posted October 30, 2014 @Mel, Please don't post the same question twice in two different topics, thanks. I have merged the two topics. Link to comment Share on other sites More sharing options...
Mike Rockett Posted October 31, 2014 Share Posted October 31, 2014 Hi Mike, They aren't they are done as follows; <?php echo $config->urls->root; ?> However I can't see anything within the site config file to determine these paths (projects/Processwire). Thanks for your help, Mel Are all your templates doing this? The only thing I can think of is that your home page is not doing what your other templates are doing. Granted, I am sure you haven't hard-coded paths, but it is worth a look-see. Have a look at $config->httpHosts in site/config.php. What's in there? However, it's probably not that as your other pages work. Perhaps you'd like to share your template files so we can see where the problem may be coming from? 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