I need to remove the category name from my SEF URL

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
newinshappi3
Joomla! Fledgling
Joomla! Fledgling
Posts: 3
Joined: Fri May 22, 2015 12:16 pm

I need to remove the category name from my SEF URL

Post by newinshappi3 » Fri May 22, 2015 12:23 pm

Hi,
I have activated mod_rewrite in my server and my SEF urls is turned on
I need my article urls without category name and with out the id number

http://www.bhartiyacity.contact-us-now.com
This is my website

Please Help

newinshappi3
Joomla! Fledgling
Joomla! Fledgling
Posts: 3
Joined: Fri May 22, 2015 12:16 pm

Re: I need to remove the category name from my SEF URL

Post by newinshappi3 » Fri May 22, 2015 12:25 pm

I have tried

Step 1

Joomla 3.0.2: This is the only way I got it working. If you find another way, please let us know!
Edit “components/com_content/router.php“, then continue on step 2.
Remember, you’ll probably have to re-do this step every time you update Joomla.

Step 2 (There are two places need to do this change, one near the top, one in the middle)
Replace this:

$advanced = $params->get('sef_advanced_link', 0);
With this:

$advanced = $params->get('sef_advanced_link', 1);


Step 3
You want to edit your router.php file:
- From: ->where($db->quoteName(‘alias’) . ‘ = ‘ . $db->quote($db->quote($segment)));
- To: ->where($db->quoteName(‘alias’) . ‘ = ‘ . $db->quote($segment));

Then its showing 404 Not found error

newinshappi3
Joomla! Fledgling
Joomla! Fledgling
Posts: 3
Joined: Fri May 22, 2015 12:16 pm

Re: I need to remove the category name from my SEF URL

Post by newinshappi3 » Sat May 23, 2015 9:53 am

newinshappi3 wrote:Hi,
I have activated mod_rewrite in my server and my SEF urls is turned on
I need my article urls without category name and with out the id number

http://www.bhartiyacity.contact-us-now.com
This is my website

Please Help

User avatar
pranabmistry
Joomla! Explorer
Joomla! Explorer
Posts: 339
Joined: Sun Dec 07, 2014 4:51 pm
Location: Dhaka, Bangladesh
Contact:

Re: I need to remove the category name from my SEF URL

Post by pranabmistry » Thu May 28, 2015 4:24 pm

The best way to turn off the category option from your url is to use sh404sef. This extension is a must-have extension for any joomla site. It works fine with Joomla component & K2 component.
With Regards
Pranab Mistry

JoomIa-Shark
Joomla! Explorer
Joomla! Explorer
Posts: 306
Joined: Fri Apr 17, 2015 5:40 pm
Contact:

Re: I need to remove the category name from my SEF URL

Post by JoomIa-Shark » Thu May 28, 2015 6:28 pm

I would agree to use SH404 or AceSEF. They offer much more in terms of configuration.
Joomla Help and Resources: www.joomla-shark.com


Locked

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