• Home
  • Get help
  • Ask a question
Last post 5 hours 58 min ago
Posts last week 94
Average response time last week 34 min
All time posts 67914
All time tickets 10497
All time avg. posts per day 20

Helpdesk is open from Monday through Friday CET

Please create an (free) account to post any question in the support area.
Please check the development versions area. Look at the changelog, maybe your specific problem has been resolved already!
All tickets are private and they cannot be viewed by anyone. We have made public only a few tickets that we found helpful, after removing private information from them.

#937 – 404 Manager - Import?

Posted in ‘sh404SEF’
This is a public ticket. Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.
Tuesday, 01 September 2015 14:28 UTC
ppan2015
Hi there,

we changed from Wordpress to Joomla and obviuously this results now for visitors in many 404 errors, as they reach links to the old site from many sources. I currently have about 600 of thoses error URLS, most of them need to redirected to the very same page on the new site. I could export them all, insert the redirect url (e.g. through Excel), but how do I re-import them? There is no import on the 404 Manager page, just on the general URL management interface. Can I use that?

Thanks a lot
Christian
Tuesday, 01 September 2015 14:35 UTC
wb_weeblr
Hi

It's not 404s that you want to import, it's aliases. 404 are never imported, they are a log of 404 requests made to your site.

I'd suggest you export URLS (from the URL manager), and Aliases from the Aliases manager. Then look at the resulting files to see what the fields are.
Then you can build up an Aliases file that you can later on import.

One word of warning: I've never been able to create a suitable CSV file in Excel. It simply doesn't create valid CSV files (ie with commas as separator and quotes around text strings). OpenOffice/Libre office can do that, as maybe can other Spreadsheet software.

Rgds
 
Tuesday, 01 September 2015 14:49 UTC
ppan2015
Thanks, I believe you are misunderstanding me

Those 404 URLS are obviuously due to URLs from the old page that do not exist anymore. They consequently do not show up in the URL manager, as they do not exist with the new page. They only show up in the 404 Manager. All I want, rather than entering 600 redirect Urls manually or redirecting them through "Redirect to a SEF Url" mannualy, is to redirect them all to the same new (existing) URL. See screenshot attached.

Thanks a lot
Christian

P.S. It took a minute to export the 404 errors and import them correctly into Excel.
Tuesday, 01 September 2015 14:51 UTC
ppan2015
Screenshot
Tuesday, 01 September 2015 15:10 UTC
wb_weeblr
Hi

Yes, I know what you want to do. And I explained above the process to do it.

1 - You never import into the 404 manager. Precisely because it manages 404s, not valid URL. And this is why the 404 manager only has an export button.
2 - Redirect (as per the documentation) are called aliases and are added into the Aliases manager or the URL manager

That's where you want to import any data
So to summarize:
- the 404 export will give you a list of redirects sources
- the URL manager export will give a list of redirects targets
- in Excel, you can massage both and produce an Aliases csv file, which you can then import into the Aliases manager.

May I ask which excel version you use and on which platform? Also what's your machine language?

Rgds

 
Tuesday, 01 September 2015 15:19 UTC
ppan2015
Thanks for your detailed response. Now I understand. Would be easier if it says in 404 Manger "Create Alias" rather than "Enter a redirect URL/Redirect to a SEF Url".

Cheers
Christian
Tuesday, 01 September 2015 15:23 UTC
ppan2015
"May I ask which excel version you use and on which platform? Also what's your machine language?"
Excel 2013, Windows, German
Tuesday, 01 September 2015 15:30 UTC
wb_weeblr
Hi

A matter of opinion I guess. "Enter a redirect" is the language used universally to handle 404 - and redirect them to another, similar URL. Create an alias would be consistent with other areas of sh404SEF, but less clear for casual users.
Aliases are basically hidden most of the times, as their main purpose is to redirect when one manually customize an URL. In that case, the alias is created automatically, so regular users don't even think about it.

Rgds
 
Tuesday, 01 September 2015 15:32 UTC
wb_weeblr
I tried again with all csv and txt options (Microsoft Office 365) and no luck.

I usually get ; instead of , to separate fields, and text is never surrounded by "

I asked because I had another user (in the US) unable to produce these CSV with Excel (2013 too I think)

Rgds
 
Tuesday, 01 September 2015 16:27 UTC
ppan2015
Hi there,

importing gives "Sorry, could not recognize the content of this file. Please select another one!"
I tried it with a CSV, comma and also just tested with an export (and untouched) sh404SEF file... the error always comes up :-(

Thanks
Christian
Tuesday, 01 September 2015 16:41 UTC
wb_weeblr
Hi

Are you saying that exporting an alias file (from the Aliases manager) and then importing it back fails?

Or are you trying to import into the Alias manager a file exported from the URL manager? (which is not supposed to work).

Can you email the file you exported from sh404SEF then tried to import to [email protected], mentioning this ticket #937 in the subject?

Rgds


Thanks
 
Tuesday, 01 September 2015 16:42 UTC
ppan2015
I am exporting from the 404 Manager and importing Aliase as discussed.
Tuesday, 01 September 2015 16:46 UTC
wb_weeblr
Hi

That's not what I explained above. Aliases and 404 are not the same thing, you can't import one into the other because for 404, we don't know what the correct non-sef URL is (by definition, a 404 being a missing URL).

So to summarize:

- the 404 export will give you a list of redirects sources

- the URL manager export will give a list of redirects targets

- in Excel, you can massage both and produce an Aliases csv file, which you can then import into the Aliases manager.


You must import into the Alias manager a file that follows the Alias format. You can get the required fields by exporting a file from the Alias manager for instance.

Rgds
 
Tuesday, 01 September 2015 16:48 UTC
ppan2015
Sorry, I am not a technical guy.

I have 3000 (!!!) URLs in the 404 Manager. I simply want to redirect all of them to "index.php?option=com_content&view=article&id=148&catid=90&Itemid=783" As there is no build-in batch possibility in sh404SEF, I though I can export and then import them again...

How to achieve that?

Thanks
Christian
Tuesday, 01 September 2015 16:58 UTC
wb_weeblr
Hi

1 - The process is explained above: whether you have 3 or 3000 is the same, as it's only a matter of moving around some columns in Excel.
Here's a sample Aliases import file:
"Nbr","Alias","Sef url","Non sef url","Type","Hits"
"1","frequent-questions/general","frequent-questions","index.php?option=com_content&Itemid=429&id=30&lang=en&view=article","0","0"
"2","general/about-weeblr","about-weeblr","index.php?option=com_content&Itemid=329&id=28&lang=en&view=article","0","0"
"3","josetta","fast-effective-translations-for-joomla/josetta","index.php?option=com_content&Itemid=194&id=4&lang=en&view=article","0","0"
"4","plan/subscribe/bundle-sh404sef-nbspjosettanbsp-nbsponenbspyear","plan/subscribe/bundle-sh404sef-josetta-one-year","index.php?option=com_payplans&Itemid=305&lang=en&plan_id=3&task=subscribe&view=plan","0","0"
"5","sh404sef","joomla-seo-analytics-security/sh404sef","index.php?option=com_content&Itemid=195&id=5&lang=en&view=article","0","0"

This is what you have to produce in excel to import as aliases.

3 - I'm confused now: why do you want to redirect ALL 3000 urls to a single article page? from an SEO standpoint, that's totally useless: no ranking or backlinks will be passed is the source page and the target are not similar.
I thought you had a new page for each old page and wanted to match one on one.
Any other reason to do those redirects?

Anyway, if you only have one single non-sef redirect target, producing the excel file should be much easier.

Rgds
 
Wednesday, 02 September 2015 10:44 UTC
ppan2015
Nothing such as "Type" in the export from "URL Manager", only
"Nbr Sef url Non sef url Hits Rank Date added Page title Page description Page keywords Page language Robots tag Canonical"
What is "Type" meant to be? In your sample it is anyways always a "0".



3 - I'm confused now: why do you want to redirect ALL 3000 urls to a single article page? from an SEO standpoint, that's totally useless: no ranking or backlinks will be passed is the source page and the target are not similar.

I thought you had a new page for each old page and wanted to match one on one.

Any other reason to do those redirects?
Nope the content of the 3000 other pages ecists in one PDF archive on one page. That is why all the 404 URLS need to divert there.

Cheers
Christian
Wednesday, 02 September 2015 14:59 UTC
wb_weeblr
Hi

Type is the type of alias, it should be 0 in most cases and doesn't exist in URL table.

Understand about why you want to redirect to one single URL. Must be a big PDF...

Rgds
 
Wednesday, 02 September 2015 15:01 UTC
ppan2015
Thanks.
Wednesday, 02 September 2015 15:23 UTC
ppan2015
Still not working: "Sorry, could not recognize the content of this file. Please select another one!"
See file attached :-(
Wednesday, 02 September 2015 15:28 UTC
wb_weeblr
Hi

Euh yes, this file format is totally wrong, just as I warned you at the beginning. It's the wrongly formatted files produced by Excel:
Nbr;Alias;Sef url;Non sef url;Type;Hits
1;01-12-2014-sport-abend/;01-12-2014-sport-abend/;index.php?option=com_content&view=article&id=148&catid=90&Itemid=783;0;1
2;03-11-2014-nachrichten-abend/;03-11-2014-nachrichten-abend/;index.php?option=com_content&view=article&id=148&catid=90&Itemid=783;0;2


A correct format is for instance:
"Nbr","Alias","Sef url","Non sef url","Type","Hits"
"1","01-12-2014-sport-abend/","01-12-2014-sport-abend/","index.php?option=com_content&view=article&id=148&catid=90&Itemid=783","0","1"
"2","03-11-2014-nachrichten-abend/","03-11-2014-nachrichten-abend/","index.php?option=com_content&view=article&id=148&catid=90&Itemid=783","0","2"


; is not valid, it should be a comma (hence the name: Comma Separated Values) and text surrounded by quotes "

Rgds
 
This ticket is closed, therefore read-only. You can no longer reply to it. If you need to provide more information, please open a new ticket and mention this ticket's number.