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?
 
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
 
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.