Joomla SEF question

Dear expert:

I have a Joomla site with this kind of URLs:<lang>/component/<my_component>/40

where <lang> is the language of the site (such as "en"), <my_component> is the name of a component I made, and 40 is the Itemid. As you can see, I have SEF options on Joomla enabled. Original URL without SEF options enabled would be:<my_component>&view=<my_view>&Itemid=40&lang=<lang>

What I would like is to get an URL with something like this:<lang>/<city>

where city is a session variable used by <my_component> to show data from a specific city.

I read that it is possible to customize the URL by using sh404SEF component and by customizing .htaccess file, but I'm not sure if it is possible to remove the name of the component from the URL, and to add a session variable on it. Is it possible to do it ? How ?

Finally, I don't understand how the view parameter is passed with the SEF URL, because it seems not to be on it.

Thank you.
LVL 15
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Panagiotis Sweb developer - designer Commented:
yes with sh404sef you can do it
gplanaAuthor Commented:
Thank you for your answer but.... how ???

Which steps should I follow ? Should I use .htaccess ? How can I get this if the parameter isn't on the URL ?
Abhijeet RananawareWeb & Mobile DeveloperCommented:
If you have written custom would be better if you write sh404sef plugin for your component.

Refer to following link .


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.