10 votes
Accepted

How to redirect user with system message in Joomla 3

Passing the message via the redirect function is deprecated, but both redirect() and enqueueMessage() are still both fine to use on their own. You simply need to use both together, like so: $app = ...
Lodder's user avatar
  • 26.9k
7 votes
Accepted

Joomla Session->isActive() & session timeout redirect not working

If you look at the session.php file, you see the following: public function isActive() { return (bool) ($this->_state == 'active'); } Which is the function you're calling. I'm not sure if ...
Lodder's user avatar
  • 26.9k
5 votes
Accepted

How can I redirect old domain to a new domain?

There are various techniques you can do to redirect an old domain to a new one and many depend on your server and site configuration. If you are hosting on Apache server, then one of the most common ...
FFrewin's user avatar
  • 19.6k
4 votes

How to redirect user with system message in Joomla 3

The best thing to do is to handle all redirects directly in sub controllers where you just need to use $this->setRedirect($url,$msg,$type); and MVC will do the rest of the job. If you need to ...
Kitase88's user avatar
  • 977
4 votes

Submit a view instead of redirect to another view

Answering my own question... I should have spend some time in google before asking my question. Joomla supports CSRF anti-spoofing and it is explained in How_to_add_CSRF_anti-spoofing_to_forms Since ...
Malaiselvan's user avatar
  • 2,721
4 votes

Trying to Fix Hacked Site

I had to face this problem recently. In most cases I saw the libraries folder hacked and I had to replace it with a clean one to see my website correctly. Here is what you can do: put on the root ...
Marco's user avatar
  • 221
4 votes

redirect component in joomla doesn't work

From the Joomla documentation:"This component is primarily used for redirecting URLs for web pages that no longer exist on your website to web pages that are working. The URL you want to redirect from ...
YellowWebMonkey's user avatar
4 votes
Accepted

Redirect if userid is not found in a database table

The first problem is that you're using joomlausers->id which doesn't look correct. It should be $joomlausers->id (with a $ at the beginning). Secondly, loadObjectList() returns an indexed array ...
Lodder's user avatar
  • 26.9k
3 votes
Accepted

Trying to Fix Hacked Site

The best method to check the hacked website is to scan the malware using this link : https://sitecheck.sucuri.net/ Here, all the malware content will be loaded and you can easily back track them. ...
Liz.'s user avatar
  • 1,375
3 votes

com_users login redirect issue

You can set a Menu-Item to be hidden, using Tab "Link Type" > "Display in Menu" set to "No" (3.7). So no need for an hidden Menu anymore.
franz.wohlkoenig's user avatar
3 votes
Accepted

Reload admin form after save field in database

When you save the template with the JavaScript call saveTemplate(), you are sending an Ajax call to the server. This Ajax call is the one being redirected with a HTTP redirect. You are ignoring the ...
Javatasse's user avatar
  • 256
3 votes

Redirect if userid is not found in a database table

I don't think it is very direct to filter the result set when sql is perfectly qualified to do such logic. As Lodder corrected, you also need to use setQuery(), fix your missing $, adjust your result ...
mickmackusa's user avatar
  • 4,781
3 votes
Accepted

Joomla correct way of routing

You should run the URL through Joomla\CMS\Router\Route::_() before passing to setRedirect() to get the correct SEF URL since none of the involved methods do that automatically. use Joomla\CMS\Router\...
Sharky's user avatar
  • 10.9k
3 votes
Accepted

Not correcting redirect to 404 page if url not exist

This is a well known issue and can be considered as expected behavior for the time being. Basically, the URL path segment is cast to an integer somewhere in the component's router. So 23fr23f2g ...
Sharky's user avatar
  • 10.9k
2 votes

Redirect to a menu item from controller

If you are in controller and have Itemid from component configuration, you can try this simple redirect: $this->redirect(JRoute::_('index.php?Itemid=' .JComponentHelper::getParams('...
Lanah's user avatar
  • 522
2 votes

Redirect to a menu item from controller

I do it this way (providing you know the Itemid) $app = JFactory::getApplication(); $menu = $app->getMenu(); $item = $menu->getItem($Itemid); $params = $item->params; ...
Piero Marsilio's user avatar
2 votes

com_users login redirect issue

Create a hidden menu, add the login page to that menu and leave it set to public. Create a login module and set your redirect page with the module parameters. Publish the module and have the module ...
Terry Carter's user avatar
  • 1,812
2 votes

How can I redirect old domain to a new domain?

You can try edit your index.php and add In first line after < php? tag this code: header("Location: http://newsite.com"); die(); I holpe this helps.
Max's user avatar
  • 991
2 votes

Access Denied, what am I overlooking?

According to the Joomla! Documentation: Joomla! uses the templates/system/error.php file to handle several HTTP Status errors, including "403 Forbidden", "404 Not Found", and "500 Internal ...
PaxAnura's user avatar
2 votes

How to make redirections cacheable in Joomla?

You can use sh404sef extension to improve sef and perfomance of your site. Cache, 301 redirections, ... http://extensions.joomla.org/extension/sh404sef
José Sánchez Martín's user avatar
2 votes

How to make redirections cacheable in Joomla?

You can cache redirect via .htaccess example for redirect non-www to www RewriteEngine on RewriteCond %{HTTP_HOST} ^example.com [NC] RewriteRule ^(.*)$ http://www.example.com/$1 [L,R=301] R=301 mean ...
Lanah's user avatar
  • 522
2 votes
Accepted

Redirect component is showing a lot of links with index.php at the end of URL

This is normal. There are so many bots trawling the web for vulnerabilities that you will end up with thousands of urls stored in the database by the Redirect Component in a short period of time and ...
Neil Robertson's user avatar
2 votes
Accepted

Redirect K2 article url after alias change

The Redirect Manager only works if the URL of the first article returns a 404 error. If it doesn't, then the redirect will not take place. I suggest you do this redirect in the .htaccess file by ...
itoctopus's user avatar
  • 3,216
2 votes

Redirect not working

Are you sure the URL is exactly the same as the one in the Redirect Manager? Also, remember that the Redirect Manager only works when the page returns the 404 error code - try to make sure that the ...
itoctopus's user avatar
  • 3,216
2 votes

redirect component in joomla doesn't work

Please ensure that the system redirect plugin is activated
Piero Marsilio's user avatar
2 votes
Accepted

How can I redirect a URL to another domain?

You could unpublish /short so that it 404s, and then use the redirects manager. (Components > Redirects). Details : https://docs.joomla.org/Help37:Components_Redirect_Manager
RichardB's user avatar
  • 3,072
2 votes

Meta tags keep being changed to m-eta

Thanks for your suggestions. It was the RSFirewall component but it didn't need disabling which would have taken away the protection from hacks. It needed an exception to be added to skip JS ...
Chris Appleby's user avatar
2 votes

How to use relative domain name for each jooma 3.8 websites running on the same server

It depends on your hosting environment but I am usually able to fix this type of issue on Apache hosting using Rewritebase in the .htaccess file. For example, if a website is in a subfolder like this:...
Neil Robertson's user avatar
2 votes
Accepted

Joomla 2.5.6 infinite 303 loop (SEF)

The problem is likely your HTTPS redirect. You are likely redirecting to HTTPS at the beginning of your .htaccess file, and later redirecting to HTTP. Another scenario is when your Joomla website is ...
itoctopus's user avatar
  • 3,216
2 votes

Adding redirect to redirect component from custom component

You can just add the necessary db query to add this, see: https://docs.joomla.org/Inserting,_Updating_and_Removing_data_using_JDatabase However, you might be able to instantiate the RedirectModelLink ...
pe7er's user avatar
  • 1,948

Only top scored, non community-wiki answers of a minimum length are eligible