How can I remove slash from URL using .htaccess?

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.
Post Reply
darisazma
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Mon Jul 13, 2020 6:37 am

How can I remove slash from URL using .htaccess?

Post by darisazma » Mon Jul 13, 2020 6:47 am

how can i remove slash from url in .htaccess ? i want tray any code but not worked
Last edited by toivo on Mon Jul 13, 2020 9:06 am, edited 1 time in total.
Reason: mod note: split from someone else's topic - please create your own topics in the future!

 
User avatar
AMurray
Joomla! Champion
Joomla! Champion
Posts: 6013
Joined: Sat Feb 13, 2010 7:35 am
Location: Australia

Re: How can I remove slash from URL using .htaccess?

Post by AMurray » Mon Jul 13, 2020 9:08 am

i want tray any code but not worked
??? ???
What URL are you talking about?
Regards,
--------------------------------------------------------------
A Murray
Help you I can, yes!. Post your question, you should. Keep it on topic you must!
Use the Forc....Forum Post Assistant my young Padawan!

User avatar
AMurray
Joomla! Champion
Joomla! Champion
Posts: 6013
Joined: Sat Feb 13, 2010 7:35 am
Location: Australia

Re: How can I remove slash from URL using .htaccess?

Post by AMurray » Mon Jul 13, 2020 9:11 am

https://expressionengine.stackexchange. ... -from-urls

(Easily found; your favourite search engine is your best friend.....) :) ;)

[Edit] or this: viewtopic.php?t=701030
Regards,
--------------------------------------------------------------
A Murray
Help you I can, yes!. Post your question, you should. Keep it on topic you must!
Use the Forc....Forum Post Assistant my young Padawan!

rickysmith
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Tue Sep 22, 2020 11:35 am

Re: How can I remove slash from URL using .htaccess?

Post by rickysmith » Tue Sep 22, 2020 12:26 pm

here you can remove / from url
If you want to redirect from http://example.com/test/ to http://example.com/test (i.e. remove the slash at the end of URLs) then you can use the following . htaccess code: RewriteCond %{REQUEST_FILENAME} !-

 

Post Reply

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