How to integrate a wordpress site with Joomla 3.0 - php

I have an established wordpress with a members section and forum, the whole site is being redeveloped but with Joomla 3.0, A lot of the content will have to be just copied and pasted into the new site but the owner of the site wants to keep the old wordpress site up for a while and possible blend it into the newer joomla site with css and styling.
I've tried throwing one site on top of the other and the only two files that collide are the license.txt (that I won't worry about)and the index.php file.
Both sites will work fine if its their index.php but if it's wordpress's index.php the links on joomla will give an error, and if it's Joomla's index.php, any wordpress links will go to the joomla index page.
What is the best way to engineer this to the main index.php will be Joomla ?
Here is the wordpress index.php
<?php
/**
* Front to the WordPress application. This file doesn't do anything, but loads
* wp-blog-header.php which does and tells WordPress to load the theme.
*
* #package WordPress
*/
/**
* Tells WordPress to load the WordPress theme and output it.
*
* #var bool
*/
define('WP_USE_THEMES', true);
/** Loads the WordPress Environment and Template */
require('./wp-blog-header.php')
Thanks

1st thing I want to mention here is having two separate cmss' in a directory is a bad idea. If had searched a bit on google you would find this helpful.
JConverter
As the name suggests, JConverter allows you to convert your WordPress
blog into a Joomla site. It can import users, blog posts, categories,
pages and even links from your WordPress blog to Joomla.
If you are not sure about the quality you can start reading the comments.
Advice
have a separate folder for two cmss and use a .htacess file to get the job done. You can find tons of articles explaining how it should be done.

After thinking about it here are the options I think I have
Option 1)
Both Wordpress and and Joomla can coexist on the same root folder, the only files where there is a conflict would be the index.php (and some license text file) and this could be engineered in such a way to work, but having 2 content management systems on the same domain root isn't a great idea in the long term as the root domain has loads of files there and updates and security patches in the future, it's open to something going wrong.
Option 2)
Put the new Joomla site on the root and then move the older site into another folder then use apache rewrite and an .htaccess file that would rewrite the location of the word press files and thus keep the original links
Option 3)
There is a component of Joomla called wordpress for Joomla which makes Wordpress a part of Joomla and would keep all the links of the original, But it's designed for people who have a Joomla site and want a dedicated blogging tool like Wordpress, not the other way round. I was talking to the developers and there unsure if this would work the other way round and then there's plugins ect to think about.
Option 4)
Leave the the current wordpress site in the same position and upload the new site to a new folder called /en/ (As in an english version)
Option 5)
JConverter still only in beta
I'm going with option 4:)

Why would you keep both sites? That just means duplicate content and is going to stop the new version of the site from ranking. The best option in my opinion is ditching your old site and making sure the URL either are the same (which can be achieved with a SEF component such as sh404sef) or use 301 redirects to your new URLs which will tell Google the URL has permanently changed.

Related

Drupal 7 multi site site specific theme is not working

I have created a multi site on Drupal 7. I have mapped it with two different domain namely tom.mydomain.com and jerry.mydomain.com.
Accordingly I have created two separate database namely tomdb and jerrydb and created a respective directory (folders) under the sites directory.
My Current folder structures are mentioned below
drupal/sites/all
drupal/sites/default
drupal/sites/tom.mydomain.com
drupal/sites/jerry.mydomain.com
I have changed the database connection details in the settings.php under the specific folders.
Everything works fine till now.
However, I wanted to use site specific theme and logo for both domain. So I created a theme folders under particular directory. But drupal is not considering the correct theme specific to that particular site. It is everywhere still using the theme from site/all folders.
Would you please suggest why it is not using theme i have created for particular domain?
Thanks in advance.
After you add a multi-site theme under the specific site's directory, for example, drupal/sites/tom.mydomain.com/themes/tom_theme, you need to set that theme as the default theme for your particular site.
This is done in the Admin area under Appearance. See detailed instructions here http://www.inmotionhosting.com/support/edu/drupal-7/customize-theme/change-default-theme
Also just checking you have configured the sites/sites.php file, which maps domains to the particular multisites.
See details here https://www.webwash.net/drupals-multi-site-aliasing-with-sites-php/

Working on Wordpress with a Redirect

I'm building a Wordpress site for a friend, and she asked me to "put the old site back up" while I'm working on the WP site. The old site lives in a /verb subfolder, so I put a PHP redirect in the domain/index.php page to the domain/verb folder.
Now, when I go to work on the WP site, it just redirects to the old site. Is there a better way to do this? I need a way to develop the WP site while visitors are sent to the old site.
Note: Her site is on godaddy, which means I didn't install WP myself and can't really move the WP installation to a sandbox area while I'm working on it. Is there an .htaccess trick I could be doing, maybe?
It's been a while but I'm pretty sure i've used a plugin before that allowed me (when logged in as an admin in WP) to view the site using a different theme than the one the rest of the world is seeing.
You could copy the active theme and change the name, making your alterations on the new theme while leaving the currently active theme untouched.
This would only work if you were re-skinning the site and not modifying any of the database content.
A quick google search came up with this plugin: https://wordpress.org/plugins/theme-test-drive/, but there may be others out there...

Wordpress and Mybb

Yes I know that there is a plug in to bridge the two, but I want to keep them separate. Basically I want the nav menu in wordpress to point to a sub domain or a folder with the mybb forums. Everyone keeps telling me to use the plug in. Also if you add folders to wordpress, will it not just give you errors that those pages do not exist? So is a subdomain the best choice?
It's completely fine to keep the two separate without using the bridge. If you want a link to MyBB from a Wordpress menu, you can add it in the Admin Panel -> Appearance -> Menus, add a Custom Link to your forum URL.
By default, the .htaccess file in Wordpress will not rewrite URLs any folders/files that exist on the server. So it is possible to have MyBB as a subfolder in your Wordpress installation. However, it may be cleaner and easier to maintain if you have it on a separate subdomain.

How Integrate existing wordpress blog into a new web-site?

I had a wordpress blog which was hosted in the public_html directory but in order to add more features I have developed a seperate web-site. I have a new index page and several other pages to serve my needs. My problem is that I can not just put the wordpress into a new directory like blog because I would like to keep all my links and content same. So I would like to keep the wordpress blog but I also would like to have a new index page. Any suggestions?
You can move your wordpress install into a new folder, no problem. Just make sure to update the paths in the wordpress config, otherwise the links won't work correctly.
If you've linked to blog pages in blog posts, you'll have to edit them manually.
See Moving Wordpress and Moving a root install into it's own directory (they're different processes, it sounds like you want the first link, but read the second just in case).
If you want external links to continue to work, you could either (a) try to catch them and redirect with URL Rewrite rules in .htaccess, or (b) write a custom 404 error page in something like PHP that would redirect them.

How to "save" my wordpress blog's posts in same url format and remove wordpress?

I have a Wordpress blog running on my site and I have no time to continuously upgrade the software and I pretty much want to remove wordpress. It's broken at this point anyway, I can't really get into the admin area, but I suppose I could try to hack my way through.
Anyway, I'd like to save the posts that I have and keep them under the same URL structure so they're still relevant in the search results indexes.
Here's the site in question: http://www.danielfischer.com
Any suggestions on how to keep the site up but possibly turn it static yet keep the same url structure? A static archive of what used to be and have the urls still work pretty much?
Thanks.
You can use a mirroring tool like HTTrack to download the entire site to individual HTML files. HTT shouldn't have any problem making folders from the URL structure (though if there are any non-pretty URLs linked, it'll grab those too).
From there, just upload those files and call it an archive (maybe put them in a separate directory & point the server to it so Wordpress doesn't get totally wiped out, just in case).
Switch on WP-Cache or better yet, install WP-Super-Cache. Make sure it caches every page you have (set the cache timeout to never in settings). This will create static versions of every page within the cache folder. Once you have all pages cached, go into the cache folder (/wp-content/cache/supercache/%{HTTP_HOST}/ by default, where HTTP_HOST is your host name) and copy all of those files and folders into a new webroot (create a new site with whatever the hosting panel is you are using, or in apache manually). Switch your domain over to this new webroot and if everything is working, delete wordpress.
A good shortcut would be to setup a site (such as test.yourblogname.com) and point the sites directory straight into the cache directory (ie. point it to /wp-content/cache/supercache/hostname/). That way you can test it without risking anything.
This could be a help for you
http://www.setuptips.com/wordpress/recovering-a-broken-wordpress-blog-without-a-backup-copy/

Categories