bkcha
Replies to this thread:

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

wordpress database bkcha
[VIEWED 3414 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 365 days
Recommended Popular Threads Controvertial Threads
What stocks to buy -- Any recommendation
TRUMP 2016!!! Here is why?
जोडि त भाग्यले जुराउँछ - हिरोइन स्वेताले यसरि दोश्रो पटक बिहे गर्न लागिन
ॐ श्री स्वस्थानी ब्रत कथा
लौ .. संसद नै बिघठन गरिदिएछन ओलिबाले
Conservative discussions
उस्तै उस्तै हामी
Looking for Potential Match
निर्लज्जताको बाढी आएको छ
Love Letters From The Past--SITARA
A New Start
हाकिमनी संग- आज सुक्रबार -३
सान भिनाजु लाई अझै पैसो कमाउने आइडिया
Ushering in new era of communism ...
Rain Rain .. Raut
I m offered a Job in Bank in Nepal, should i go back ?
श्राद्द
अन्तरद्वन्द
Fox News: Wear the Damn Mask, it is not political issue but a public health issue.
Photo of the day
Nas and The Bokas: Coming to a Night Club near you
विद्या तेरो सिन्दूर खोइ, केपी ओली तेरो पोइ ..
TRUMP 2016!!! Here is why?
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