Jump to content
Sign in to follow this  
melissa_boyle

Homepage not finding correct URLs on subdomain

Recommended Posts

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

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

@Mel,

Please don't post the same question twice in two different topics, thanks. I have merged the two topics.

Share this post


Link to post
Share on other sites

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?

Share this post


Link to post
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.

Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...