Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

How to make a clean Url with $_GET? 
 
wilfredyan
Member
 
Total Posts:  33
Joined:  2012-06-10
 

now i have a url like this
http://www.magento.com/name?id=1

how to make it like this
http://www.magento.com/name/id/1

Thanks for help

 
Magento Community Magento Community
Magento Community
Magento Community
 
wilfredyan
Member
 
Total Posts:  33
Joined:  2012-06-10
 
Monty22 - 06 March 2013 11:02 PM

Hi,

To access the parameter in php with $_GET[’doc’], and have the user see the clean url /name/id/1 you can rewrite as follows:

RewriteBase /
RewriteRule ^/name/id/(.*)$ /names/?id=11 [NC]

Hope this will help you. If you need any kind of help you can contact us as we are one of best Magento extensions developer.

Thanks

Monty
iLoveMage

Get 25% discount all our Magento Extensions.

Thanks for help.
but i dont want to write any thing in the htaccess file

i found some method said that i need to write some code in etc/config.xml & create a Controller/Router.php

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top