RewriteRule for SEO friendly URLs

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • bnashenas1984
    Contributor
    • Sep 2007
    • 257

    RewriteRule for SEO friendly URLs

    Hi everyone

    I'v built a website and now I'm stuck with writing .htaccess file

    I know many people would say the time for SEO fiendly URLs is over but I still need to find a way to do this. (Some customers want what they want)

    Here is what I need :

    I have 2 index.php files.

    First one is here :
    www.example.com/index.php

    And it might contain up to 4 different variables like this :
    ?category=val1& keyword=val2&so rtby=val3&pag=v al4

    Here is what it should look like in the URL :
    www.example.com/val1/val2/val3/val4.html

    The last one should end with .html

    Then the second index.php file is located here :
    www.example.com/product/index.php

    This URL allways contains 1 variable which is the product id : ?prdid=1234

    This should also end with .html
    www.example.com/1234.html

    There is a tool in the link below which works fine with changing variable to folders but I couldn't figure out how to change the url to .html files

    http://www.webmaster-toolkit.com/mod_rewrite-rewriterule-generator.shtml


    Any help whould be highly appreciated

    Thanks
  • bnashenas1984
    Contributor
    • Sep 2007
    • 257

    #2
    anyone?
    I realy need to fix this.

    Comment

    Working...