[Show all top banners]

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 6768 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
TPS Re-registration case still pending ..
Toilet paper or water?
ढ्याउ गर्दा दसैँको खसी गनाउच
Tourist Visa - Seeking Suggestions and Guidance
To Sajha admin
From Trump “I will revoke TPS, and deport them back to their country.”
wanna be ruled by stupid or an Idiot ?
MAGA denaturalization proposal!!
advanced parole
How to Retrieve a Copy of Domestic Violence Complaint???
and it begins - on Day 1 Trump will begin operations to deport millions of undocumented immigrants
Travel Document for TPS (approved)
All the Qatar ailines from Nepal canceled to USA
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