Skip to content

Instantly share code, notes, and snippets.

@ainsofs
Created April 16, 2015 21:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ainsofs/3f20173180478325f66e to your computer and use it in GitHub Desktop.
Save ainsofs/3f20173180478325f66e to your computer and use it in GitHub Desktop.
Steps to update sh404 to perform 301 redirects on Joomla from the database
-- Steps to update sh404 to perform 301 redirects on Joomla from the database
-- 1. Search for your current url
select * from {owner}.{prefix}sh404sef_urls
where oldurl like '%{your old url}%'
order by oldurl
-- 2. Update the newurl to the new page you want
index.php?option=com_content&Itemid={menu item id}&id={article id}&lang=en&view=article
update {owner}.{prefix}sh404sef_urls
set oldurl = '{your new url to redirect to}'
where id={your matching item}
-- 3. from joomla admin delete existing alias if present
-- 4. from joomla admin add alias
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment