Created
May 1, 2020 16:39
-
-
Save hansspiess/f19f27b96d3133746bf5d76f8d0b1958 to your computer and use it in GitHub Desktop.
Rewrite joomla article urls after turning on new routing system
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# When changing joomla routing to not output article ids, google must be told where those articles are. | |
# Beware! This breaks if an article slug contains a number! | |
# https://docs.joomla.org/J3.x:New_Routing_System | |
RewriteRule category\/([a-z]*)\/(\d+)-([^/]*) https://www.site.example/category/$1/$3 [R=301,L] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment