Old/new website - same category URL! What to do? - php

I have a problem. I bought an old domain name and I redirected all my content to it now.
So I have this category as example: http://www.formulawahad.com/category/news/ (or simply formulawahad.com/news/)
So any news link is like this: http://www.formulawahad.com/news/37329/
(My wordpress installed is not in the root - inside a folder).
Today, I got all the files from this domain which goes back to 2001. And Google found like 2000 errors. Now I want to upload them and make them available as they have a lot of backlink.
But the problem is the link of the old articles are like these:
http://www.formulawahad.com/news/090217_coulthard.htm
Or: http://www.formulawahad.com/news/080623_trulli.htm
So what do I do? create a "news" folder and place all html files in it? but then what will happen to my wordpress category formulawahad.com/news/?
I have the same problem with 2 more categories. So I need your help before I decide what to do.
Thanks a lot.

This is simple to get rid of those 2000 errors in google. In wordpress init() hook you have to make a redirect function. In databse add a table with old and new url,get url and search with old url and redirect it to new one.

Related

How to change a URL for a specific page in WordPress?

I'm not talking about site URL.
I mean like changing from mysite.com/our-team/john-doe to mysite.com/our-volunteers/john-doe
I just want to rename the /our-team/ to /our-volunteers/. There's only one john-doe page. Now, John Doe is NOT our team per se, but he's a volunteer. So, I need to change the slug to "our volunteers."
The current premium I'm using does not create a WordPress typical page for this so I can't modify the url of the page. So, this does not work -> https://www.competethemes.com/blog/change-page-url-wordpress/
Is there like a hook i can use? Permalinks only allow changing the url structure of the entire site.
What you exactly looking for is Page attributes
https://wordpress.com/support/pages/page-options/#parent-page
You have parent page Our volunteers
http://example.com/our-volunteers
And pages of children pages
http://example.com/our-volunteers/john-doe
http://example.com/our-volunteers/foo
http://example.com/our-volunteers/bar
Set our-volunteers as page slug when you create Our volunteers page
Assign pages John doe, foo, bar to Parent page (Our volunteers) from Page attributes section bottom right on 'creating new page' page
One hack could be to edit .htaccess for this particular issue. It's kinda hacky and might get you into other problems. There's also plugins to do rewrites for you.

How to keep two wordpress blogs under the same site?

I am working on a blog in the media front. I want to create two blogs under the same wordpress site in such a way that the session and the user base is common for the both and i even want to have the same url for both that is
www.example.com
for both. So is there a possibility to do that and as of now i have created two separate blogs under the same database but the issue is the session is separate for both and even the user base and even the url changes. So can someone help out with this. All i need is a little guidance and i can build upon it.
thanks
If you want two WordPress blog and one database for the user. You need to add following code into your both wp_config.php
define(CUSTOM_USER_TABLE,'wp_users');
define(CUSTOM_USER_META_TABLE,'wp_usermeta');
Also you need to Replace the wp_ with the prefix to what you want. You may see https://wordpress.org/support/topic/two-blogs-working-from-one-user-database for more help.

phoca download error not found

I'm trying to design a new site with Joomla 2.5.6 (french translation installed), Phoca download 3.2.1 and Gallery Tree 3.1.2
I've created so far one empty category for all 2012 categories, but each time I'm clicking on the 2012 item in the module, I'm getting the following error message :
Not Found
The requested URL /component/phocadownload/category/3-2012 was not found on this server.
The goal is to have only subcategories in this category (and one for each year). but I've tried to add images to that category without any success.
I've not planned to create a menu and manually create a link to these emply categories. If the category contains a sub-category, this subcategory is working like a charm (correctly displayed, etc...)
The link given by the module is /component/phocadownload/category/3-2012 instead of /index.php/component/phocadownload/category/3-2012. The index.html is missing.
Have-I done something wrong in my setup ?
First of all: 2.5.19 or 3.2.3: you simply cannot use an old version or your site will be hacked - quickly!
Try adding a letter at the beginning of the alias text: I am guessing phoca is getting confused by the number-only alias, so use something like y2012 as an alias, your url will look like /3-y2012 which should be acceptable.

2 domains on a wordpress site for different pages

Suppose I have a wordpress site...
We'll call it www.mysite.com
I then have a page
www.mysite.com/new-page
Supposing I had a second domain name called www.newdomain.com, is it possible to have that sub page of wordpress land at www.mysite.com/new-page (while keeping the address www.newdomain.com)?
And to add to that, supposing I had another page that I wanted to be associated with www.newdomain.com , so lets call it www.newdomain.com/new-page-2
Is all this possible while always keeping the one website/database and how would I go about it?
Thanks for your help, google isnt showing much in terms of my specific problem.

How do I make a single WordPress installation seem to power two sites?

I'd like to set up a single WordPress installation at siteA.com with 2 static pages and a blog. I have two domain names and I would like to set it up so that siteA.com shows page 1 as its home page, and siteB.com would show page 2 as the homepage. Both sites would share the blog contents.
Since the Wordpress installation resides at site A, how can I create a seamless experience for the user who visits site B?
Say they type in http://siteB.com/. What should I do to show page 1 at this address? PHP include? Redirect? Mess with .htaccess?
You could make use of Wordpress' RSS feeds to show the blog posts of site A on site B.
However, from a SEO point of view having the same content on two sites might not be a good idea (duplicate content: http://www.google.com/support/webmasters/bin/answer.py?hl=en&answer=66359).
Install them on two servers and use 1 database.
Is Wordpress MU what you're looking for? It's now in the full release and can be found here http://codex.wordpress.org/Create_A_Network
Tricky, but probably doable, though I'm not sure why you'd want to do it this way, to be honest. You'll need to modify each WordPress install to use some different tables for different things, i.e. site info (base URL, etc.). Note that at runtime you can also use the HTTP_HOST header to determine which "site" you're displaying things for, but I suspect noodling with the tables will get you most of what you want.
See http://wordpress.org/support/topic/share-certain-parts-of-a-wp-database-over-2-domains for some more info.

Categories