Skip to main content
OverflowAI is here! AI power for your Stack Overflow for Teams knowledge community. Learn more
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
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

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

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,791
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
  • 11.4k
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
  • 11.4k
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 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,226
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,226
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

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 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,082
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,226
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
  • 2,058
2 votes
Accepted

Is there a way to redirect the Joomla! Administrator login?

I do not want to give any custom solution here since it looks like that this feature is already given by a third party plugin. You should try this plugin: https://extensions.joomla.org/extension/...
Zollie's user avatar
  • 2,936
2 votes

Automatically create redirects after changing to modern routing / updating to J4. Detect and deal with old links with id

I wrote a system plugin based on the redirect plugin to deal with this. The xml manifest has no config and just the 1 file. Note that after installing, go to manage plugins, search for "redirect&...
jamesgarrett's user avatar
  • 3,299
1 vote

Rewrite URL In joomla

You can do it like this: RewriteRule ^/?en/example/example/index.php$ en/example [R=301,L] or like this: RewriteCond %{REQUEST_URI} ^/en/example/example/index.php RewriteRule (.*) en/example [R=...
FFrewin's user avatar
  • 19.7k
1 vote
Accepted

Redirect an anchor link to a new URL

Answer here https://stackoverflow.com/questions/15133023/hash-url-rewrite-in-htaccess In short, no, the bit after the hash (called a fragment) is not sent to the server and thus cannot be dealt with ...
jamesgarrett's user avatar
  • 3,299
1 vote

Custom Login Component - Redirecting depends from entered data

There are at least a couple of extensions where unique redirects can be set up for each user: The Pro version of Redirect on Login Redirect after Login (paid extension)
Neil Robertson's user avatar
1 vote

301 Permenant Redirect joomla :too many redirects

You have a redirect loop in your .htaccess file, you are redirecting from A to B and then to A. A method to (uncleanly) address redirect loop situation in the .htaccess file is to add the following ...
itoctopus's user avatar
  • 3,226
1 vote

Joomla return URL when login sent via email

I had a similar problem, and I have solved it as follows: In Joomla, you can create a Menu with Access "Registered", When you send a link with this Menu, the user will automatically gets a login page ...
Tom Kuschel's user avatar
1 vote
Accepted

How to set up website redirects after enabling url rewriting?

Once URL Rewriting is enabled, links including index.php will still work. To help preserve search engine rankings you can redirect the urls that include index.php to the non-index.php versions using ....
Neil Robertson's user avatar

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