bkcha
Replies to this thread:

More by bkcha
What people are reading
Subscribers
:: Subscribe
Back to: Kurakani General Refresh page to view new replies
 Wordpress sharing same database
Keywords associated with this thread

wordpress database bkcha
[VIEWED 5576 TIMES]
SAVE! for ease of future access.
Posted on 05-26-10 1:22 PM     Reply [Subscribe]
Login in to Rate this Post:     0       ?    
 

Hello There,

I am having issue with wordpress database.

i have a site..

sitename.com/blog/

sitename.com/blog2/

i want both the site to use the same database.... so sitename.com/blog/ will have same post ro content as sitename.com/blog2/ ..


But only the design will change.. so if i post an article at sitename.com/blog2/ it will also appear in
sitename.com/blog/.

Is there a way to do that ?

Please let me know.. It will be a great help..

Thanks..!!!!



 
Posted on 05-26-10 2:46 PM     [Snapshot: 19]     Reply [Subscribe]
Login in to Rate this Post:     0       ?    
 

First of all I don't recommend you doing that. Importantly if you are planning to put Google adsense in there. Google will track you down and remove you from their program. But if you are doing it for fun or other purposes. Here is what you can do.

You can connect database by configuring wpconfig.php file where you will provide database name, password and table info. So pretty much you can use sampe wpconfig.php file in both blog folder.

I hope it helps.

 
Posted on 05-26-10 6:22 PM     [Snapshot: 56]     Reply [Subscribe]
Login in to Rate this Post:     0       ?    
 

Hey Umesh,

thanks for the reply.. this is not for adsense intention..
I want to make 2 design.. one for a light version and other for a complete version.. lite version is for ppl who have limited data connectivity.. hope you get the idea..so light version will only have text and no images etc..

With working with wp_config  it wont work that way.. it is becuase the site name is defined on the database... like if you install WP from sitename.com/blog/  and use the same info at sitename.com/blog2/
on wp_config it will redirect you to sitename.com/blog/ .

Any other ideas?

 
Posted on 05-27-10 10:26 AM     [Snapshot: 102]     Reply [Subscribe]
Login in to Rate this Post:     0       ?    
 

i hope you can use wordpress MU so that the post can be shared. or you can use some rss importer plugin where you can import the post automatically .

 
Posted on 05-27-10 11:31 AM     [Snapshot: 120]     Reply [Subscribe]
Login in to Rate this Post:     0       ?    
 

If you copy the same contents you will see same thing. Please create a separate database user and try again. Do not copy from blog to blog2. Simply ftp to your site and use different username and database name, you should not have problem. I had same king of problem before while I was coping the stuffs on different directories (name based hosting) .. Please share your findings ..
 
Posted on 05-31-10 3:41 PM     [Snapshot: 152]     Reply [Subscribe]
Login in to Rate this Post:     0       ?    
 

I am trying wordpress MU.. lets see if it works..!!

 


Please Log in! to be able to reply! If you don't have a login, please register here.

YOU CAN ALSO



IN ORDER TO POST!




Within last 60 days
Recommended Popular Threads Controvertial Threads
What are your first memories of when Nepal Television Began?
निगुरो थाहा छ ??
Basnet or Basnyat ??
TPS Re-registration case still pending ..
Sajha has turned into MAGATs nest
Nas and The Bokas: Coming to a Night Club near you
मन भित्र को पत्रै पत्र!
काेराेना सङ्क्रमणबाट बच्न Immunity बढाउन के के खाने ?How to increase immunity against COVID - 19?
TPS Work Permit/How long your took?
Breathe in. Breathe out.
Guess how many vaccines a one year old baby is given
अमेरिकामा बस्ने प्राय जस्तो नेपालीहरु सबै मध्यम बर्गीय अथवा माथि (higher than middle class)
चितवनको होस्टलमा १३ वर्षीया शालिन पोखरेल झुण्डिएको अवस्था - बलात्कार पछि हत्याको शंका - होस्टेलहरु असुरक्षित
शीर्षक जे पनि हुन सक्छ।
Travelling to Nepal - TPS AP- PASSPORT
Nepali doctors future black or white usa ?
Doctors dying suddenly or unexpectedly since the rollout of COVID-19 vaccines
Morning dharahara
Another Song Playing In My Mind
TPS Renewal Reregistration
Nas and The Bokas: Coming to a Night Club near you
NOTE: The opinions here represent the opinions of the individual posters, and not of Sajha.com. It is not possible for sajha.com to monitor all the postings, since sajha.com merely seeks to provide a cyber location for discussing ideas and concerns related to Nepal and the Nepalis. Please send an email to admin@sajha.com using a valid email address if you want any posting to be considered for deletion. Your request will be handled on a one to one basis. Sajha.com is a service please don't abuse it. - Thanks.

Sajha.com Privacy Policy

Like us in Facebook!

↑ Back to Top
free counters