Jump to content

Homepage not finding correct URLs on subdomain


melissa_boyle
 Share

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

Link to comment
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

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

Link to comment
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?

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...