Working On Hosts File

Post Reply
tubeman
Posts: 534
Joined: Sat Mar 02, 2013 11:33 am

Working On Hosts File

Post by tubeman »

Hi,
Is it ok to setup a domain on an IP and install scj and work on site integration and imports by updating local hosts file, and only after site is ready then make DNS live?

Regards,
admin
Site Admin
Posts: 37241
Joined: Wed Sep 10, 2008 11:43 am

Re: Working On Hosts File

Post by admin »

Hi,

yes, sure.
Don't forget to run script update
tubeman
Posts: 534
Joined: Sat Mar 02, 2013 11:33 am

Re: Working On Hosts File

Post by tubeman »

Hi,
Importing data while working on a site on hosts file, the data import(grabbing) is very slow.Same data I import on another site which is live is very fast. Any idea why this could be happening? Both sites are on v2.1.

Regards,
admin
Site Admin
Posts: 37241
Joined: Wed Sep 10, 2008 11:43 am

Re: Working On Hosts File

Post by admin »

You can check gallery_grabber - it shows what takes time, may be it's slow remote host
Don't forget to run script update
tubeman
Posts: 534
Joined: Sat Mar 02, 2013 11:33 am

Re: Working On Hosts File

Post by tubeman »

Hi,
How do I put canonical links on all my pages instead of just on video page?

Regards,
admin
Site Admin
Posts: 37241
Joined: Wed Sep 10, 2008 11:43 am

Re: Working On Hosts File

Post by admin »

Exactly the same way as for video pages
Don't forget to run script update
tubeman
Posts: 534
Joined: Sat Mar 02, 2013 11:33 am

Re: Working On Hosts File

Post by tubeman »

Whats the exact tag I need to put in header to get it on all pages?
admin
Site Admin
Posts: 37241
Joined: Wed Sep 10, 2008 11:43 am

Re: Working On Hosts File

Post by admin »

There's no one tag caz it depends on your links\templates

You can use <?=$_SERVER['REQUEST_URI']? if that suits your needs
Don't forget to run script update
tubeman
Posts: 534
Joined: Sat Mar 02, 2013 11:33 am

Re: Working On Hosts File

Post by tubeman »

Thanks. Is there a way to hide common.php ? From what I understand it must be copied to root along with index.php. Also is it required to copy include.php ?
admin
Site Admin
Posts: 37241
Joined: Wed Sep 10, 2008 11:43 am

Re: Working On Hosts File

Post by admin »

include.php - no
common - the same as any other file
Don't forget to run script update
Post Reply