Joomla SEF question

Dear expert:

I have a Joomla site with this kind of URLs:

http://www.mysite.com/<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:
    http://www.mysite.com/index.php?option=<my_component>&view=<my_view>&Itemid=40&lang=<lang>

What I would like is to get an URL with something like this:

   http://www.mysite.com/<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
gplanaAsked:
Who is Participating?

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

x
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
0
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 ?
0
Abhijeet RananawareWeb & Mobile DeveloperCommented:
If you have written custom component..it would be better if you write sh404sef plugin for your component.

Refer to following link .

http://anything-digital.com/sh404sef/faqs/how-do-i-write-a-sh404sef-plugin-for-my-component.html

Regards,
Abhijit
0

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
Joomla

From novice to tech pro — start learning today.