Stránka 1 z 3
WP články na dva weby
Napsal: 16 bře 2013, 21:19
od Welton123
Zdravím, je možné, abych měl web na webu
weltcraft.eu články a na
web.weltcraft.eu ty samé články?
Zkoušel jsem
web.weltcraft.eu napojit na stejnou MySQL databázi jako je
weltcraft.eu ale to mi potom píše, že v této databázi už je WP nainstalován a web
web.weltcraft.eu nefunguje. Předem díky za radu

Re: WP články na dva weby
Napsal: 16 bře 2013, 22:05
od Mysteria
Jaký pro tohle máš důvod?
Re: WP články na dva weby
Napsal: 16 bře 2013, 22:19
od Qefik
Nevím jak to přesně fungovalo, ale já jsem měl napojené 2 weby na stejnou DB

Možná by stačilo, aby pak tahali články ze stejné tabulky, což si myslím nebude zase tak velkej problém, pokud pojedou na jedné a té samé DB.
Re: WP články na dva weby
Napsal: 16 bře 2013, 23:19
od Welton123
Mysteria, protože chci přenusout celý web z weltcraft.eu na web.weltcraft.eu. hl stránka weltcraft.eu totiž nefunguje. Psal jsem ticket, jeslti neni problém s hostingem (překročená velikost atd..) ale FH mi napsala, že web jde v pořádku. Přitom ale web nejde ://
Re: WP články na dva weby
Napsal: 17 bře 2013, 00:09
od Mysteria
Jak nejde? Mě normálně jde

Re: WP články na dva weby
Napsal: 17 bře 2013, 00:18
od Welton123
Tobě se načítá šablona atd..? :O
Re: WP články na dva weby
Napsal: 17 bře 2013, 01:17
od Mysteria
Jo, ale pomalu. Respektive cca v polovině se to jakoby sekne, ale za dalších 15 - 20sec se to načte. Skus smazat htaccess jestli ho tam máš. Případně odjebni WP (přepiš názvy složek třeba na _nazev) a dej tam nějakej jednoduchej index.html a uvidíš, čím to je.
Re: WP články na dva weby
Napsal: 17 bře 2013, 01:36
od Welton123
no, když změnit index na nějaký text tak se na webu ukáže index v pohodě, ale když tam dám ten od WP tak už nenaběhne.
Když dám .htaccess pryč tak se nic nezmění.
Zajímavé, že subdomeny atd.. jdou v pořádku, takže je problém ve WP asi v šabloně, ale to nevím jak přes FTP změnit, když se dostanu sem
http://weltcraft.eu/wp-login.php a dál už ne.
Re: WP články na dva weby
Napsal: 17 bře 2013, 09:56
od Vojko
Takto ti to fungovať nikdy nebude.
WordPress má špeciálnu funkciu, ktorá presne toto dokáže.
Stačí upraviť config a pôjde ti to

Re: WP články na dva weby
Napsal: 17 bře 2013, 10:24
od Welton123

aha
Myslíš config.php?
Kód: Vybrat vše
<?php
/**
* The base configurations of the WordPress.
*
* This file has the following configurations: MySQL settings, Table Prefix,
* Secret Keys, WordPress Language, and ABSPATH. You can find more information
* by visiting {@link http://codex.wordpress.org/Editing_wp-config.php Editing
* wp-config.php} Codex page. You can get the MySQL settings from your web host.
*
* This file is used by the wp-config.php creation script during the
* installation. You don't have to use the web site, you can just copy this file
* to "wp-config.php" and fill in the values.
*
* @package WordPress
*/
// ** MySQL settings - You can get this info from your web host ** //
/** The name of the database for WordPress */
define('DB_NAME', 'hosted_weltcraft');
/** MySQL database username */
define('DB_USER', 'weltcraft');
/** MySQL database password */
define('DB_PASSWORD', 'heslo');
/** MySQL hostname */
define('DB_HOST', 'localhost');
/** Database Charset to use in creating database tables. */
define('DB_CHARSET', 'utf8');
/** The Database Collate type. Don't change this if in doubt. */
define('DB_COLLATE', '');
/**#@+
* Authentication Unique Keys and Salts.
*
* Change these to different unique phrases!
* You can generate these using the {@link https://api.wordpress.org/secret-key/1.1/salt/ WordPress.org secret-key service}
* You can change these at any point in time to invalidate all existing cookies. This will force all users to have to log in again.
*
* @since 2.6.0
*/
define('AUTH_KEY', 'bFr| ud~]X;D$CT;`.Z_?lQz,=Qb$=9pBhP;bV7ek)m=ds-3>uE.#qf,H`>r-+}!');
define('SECURE_AUTH_KEY', '!X*XJ7EI~QepM0E)fJtn:*6F:Uy: RR6^;=y/HuLdW}6KIsZ{ UNPg2)rj5`{+Y');
define('LOGGED_IN_KEY', 'P6RM?BaxYY&C}mU.x+-2go&jO/[#[<*?`f]E=Q>b98f3e0H_FyQN7C!yE91dJCts');
define('NONCE_KEY', '$Zy[pb0]$)-K/qgCeiLI0Hb}X GCl?T|IY0aL5im|BSmN<gG4U3[.87,mwXc|EJ8');
define('AUTH_SALT', 'alEa>hv)57 ~0IG9Wn Gix{^8cO+Z+4*iCezwB?+Ue,pE]I]u[8Mm58_]7e@-;af');
define('SECURE_AUTH_SALT', 'th~s+`{GwI!%%Ls8;T|A[|vlAl0U2sylgt~>3B.#>*#4C+LpX2F3B9:wWG~WmK4W');
define('LOGGED_IN_SALT', '#_z=E-ZRE>|L9p2?6|q+7+qPw65K(#-=++9Z#S>W7ang]%Jeo%_MC+{FlgiVc2/R');
define('NONCE_SALT', '=dSBA~Xq+Ujo>87MZ.Ch){lO(QK3e~MKLo1RiY+h}[F:wi_Jhs):YFy#=e4i1[OL');
/**#@-*/
/**
* WordPress Database Table prefix.
*
* You can have multiple installations in one database if you give each a unique
* prefix. Only numbers, letters, and underscores please!
*/
$table_prefix = 'wp_';
/**
* WordPress Localized Language, defaults to English.
*
* Change this to localize WordPress. A corresponding MO file for the chosen
* language must be installed to wp-content/languages. For example, install
* de.mo to wp-content/languages and set WPLANG to 'de' to enable German
* language support.
*/
define ('WPLANG', 'cs_CZ');
/**
* For developers: WordPress debugging mode.
*
* Change this to true to enable the display of notices during development.
* It is strongly recommended that plugin and theme developers use WP_DEBUG
* in their development environments.
*/
define('WP_DEBUG', false);
/* That's all, stop editing! Happy blogging. */
/** Absolute path to the WordPress directory. */
if ( !defined('ABSPATH') )
define('ABSPATH', dirname(__FILE__) . '/');
/** Sets up WordPress vars and included files. */
require_once(ABSPATH . 'wp-settings.php');