How to properly redirect or rewrite Joomla article urls Topic is solved

Discuss Search Engine Optimization in relation to Joomla! 3.x. This forum will also have discussions on SEF/SEO Joomla! 3.x extensions.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10.
Locked
niaziblog
Joomla! Apprentice
Joomla! Apprentice
Posts: 14
Joined: Fri Jun 02, 2017 1:30 pm

How to properly redirect or rewrite Joomla article urls

Post by niaziblog » Tue Mar 26, 2019 1:39 pm

I use j2store and Some of my article pages are linking to a menu items that uses aliases as the page url.
For example: mysite.com/joomla/realurl.
However these articles can still be accessed via the google search and browser
mysite.com/component/j2store/products/realurl
What is the best and easiest way to redirect/rewrite all these urls to the menu item alias(article page), seo friendly, urls?

User avatar
CyrusXxX
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 236
Joined: Wed Oct 04, 2017 6:23 am
Location: Belgrade Serbia
Contact:

Re: How to properly redirect or rewrite Joomla article urls

Post by CyrusXxX » Wed Mar 27, 2019 8:48 pm

Hello, niaziblog
you can create 301 redirects with Joomla redirect manager or htaccess.

Here is the info:

https://docs.joomla.org/Help39:Componen ... ct_Manager

https://docs.joomla.org/Creating_301_redirects
Joomla Serbian Latin Coordinator
https://volunteers.joomla.org/joomlers/ ... oran-nesic

Power is knowledge and knowledge is power.
https://regenesiscomputers.com

niaziblog
Joomla! Apprentice
Joomla! Apprentice
Posts: 14
Joined: Fri Jun 02, 2017 1:30 pm

Re: How to properly redirect or rewrite Joomla article urls

Post by niaziblog » Sat Mar 30, 2019 3:55 pm

My old url index is
Mysite.com/component/j2store/products/alias
New url index
Mysite.com/joomla/alias

i want redirect all old url to new url with htaccess
About 100 pages
What code can be used؟

GrandMasterV
Joomla! Apprentice
Joomla! Apprentice
Posts: 12
Joined: Wed Jan 18, 2017 3:18 pm

Re: How to properly redirect or rewrite Joomla article urls

Post by GrandMasterV » Mon Apr 08, 2019 11:17 am

This GitHub snippet might provide you with some insights: https://gist.github.com/ScottPhillips/1721489

*edit* Make a backup of your orginal .htaccess!

niaziblog
Joomla! Apprentice
Joomla! Apprentice
Posts: 14
Joined: Fri Jun 02, 2017 1:30 pm

Re: How to properly redirect or rewrite Joomla article urls

Post by niaziblog » Sun May 05, 2019 12:20 pm

thank you so much
solved


Locked

Return to “Search Engine Optimization (Joomla! SEO) in Joomla! 3.x”