• Home
  • Get help
  • Ask a question
Last post 10 hours 31 min ago
Posts last week 110
Average response time last week 29 min
All time posts 67419
All time tickets 10424
All time avg. posts per day 21

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.

#7636 – 404 errors and old url redirections

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, 16 February 2021 08:05 UTC
digisys

hi. we created new website for our client on joomla and we use sh404.

the old web was on some build on some different cms and its also used /index.php for urls..

but now we have big issue because any of the old urls dont show our error 404 page, they are also not collected as 404 sources.. and we are not able to redirect them even with htacess 301 redirect.

do you have any idea what could be the issue?

this are samples of old urls: 

https://xxxx.sk/index.php?main_page=index&cPath=28
http://www.xxxx.sk/index.php?main_page=index&cPath=9

we got now this in htaccess but it dont work
Redirect 301 /index.php?main_page=index&cPath=28 /novinky

 

Tuesday, 16 February 2021 08:35 UTC
wb_weeblr

Hi

I cannot advise on .htaccess rules, that's not really what we do but I can comment as follow:

1 - If your URls are like example.com/index.php?xxx=yyy, it's normal and expected that they do not trigger 404s. xxx=yyy are parameters added to the main request which is example.com/index.php

example.com/index.php will load the joomla site home page, and if the xxx=yyy parameters don't mean anything to Joomla, it will just ignore them, as is expected. So you end up seeing the home page.

2. Do you want to redirect those pages or just 404s them? If some pages are really, really the same on the old and new site, or at least deal with the same products/content, you should redirect. If you don't have an equivalent page on the new site, it's better to just 404 them.

3. .htaccess redirects should work, so it's a matter of tweaking the rules until they do. You can however use sh404SEF to do some of all redirects. Under the Aliases page, you can click the New button to enter an alias, and you can use {*} and {?} to perform generic redirects. For instance,

Alias: /index.php?main_page=index{*}

Target: /welcome

Will redirect any request that starts with /index.php?main_page=index to a welcome page.

Note that I strictly recommend that you do NOT redirect everything to home page, you need to explain to your visitors what happens and why they are seeing the home page while they were looking for something else.

You can add as many aliases as you want, so you can have several redirects for various cases.

Best regards

Yannick Gaultier

weeblr.com / @weeblr

 

 

 

 

 

 
Tuesday, 16 February 2021 10:27 UTC
digisys

thank you a lot.

using alias for single urls works for us.

Tuesday, 16 February 2021 10:56 UTC
wb_weeblr

Hi

You're welcome! Closing this ticket now, feel free to open a new one as needed. If you do so, please mention this ticket number in the new one.

And please feel free to post a review on the JED https://extensions.joomla.org/extension/sh404sef/,it helps and we appreciate it!

Best regards

Yannick Gaultier

weeblr.com / @weeblr

 

 
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.