Most effective way to code SEO friendly URLs?

前端 未结 2 1861
一整个雨季
一整个雨季 2020-12-16 08:07

I currently use .htaccess and PHP to parse URLs in the following way:

URL:

http://blah.com/article/123_this-that-and-the-other


        
相关标签:
2条回答
  • 2020-12-16 08:37

    It is called "router".

    See Zend Controller Router f.e.

    0 讨论(0)
  • 2020-12-16 08:50

    You could get the whole query string as one paramter.

    RewriteRule ^([^.]+)$ index.php?url=$1 [QSA,L]
    

    Then you can split the string with php and convert the different parameters into an array to do whatever you like with.

    0 讨论(0)
提交回复
热议问题