SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Member
    Join Date
    Apr 2012
    Posts
    21
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Post url rewrieen problem for my code.

    i am using osclass 3.01 which is open source classified script. (it developed using php and mysql). The disadvantage of this is all the urls are showing in dirty format(for google seo) so i need to convert them into a clean urls.

    The problem is all urls are showing like this :-

    Example:-

    http://example.com/index.php?page=se...pe=asc&iPage=4

    but i need like this

    http://example.com/search/pets/dogs.html (.php)

    for this purpose i read some articles regarding .htaccess file. But i am not understanding what they said. please help me what to do.

    Some of the sites tells for changing for the single file. but i need to add one .htaccess file to my whole project and it will convert all databse(source urls) to good urls(as shown above as 2nd link). this means that if users post in feature time then they also will be converted to clean urls.

    Dear web masters please solve it. and please tell me what are the additional requirements for this. (presently i am using xampp(only using mysql and apache)...

  2. #2
    SitePoint Wizard silver trophybronze trophy Cups's Avatar
    Join Date
    Oct 2006
    Location
    France, deep rural.
    Posts
    6,869
    Mentioned
    17 Post(s)
    Tagged
    1 Thread(s)
    Have you read about how mod_rewrite works? mod_rewrite tutorial.

  3. #3
    Certified Ethical Hacker silver trophybronze trophy dklynn's Avatar
    Join Date
    Feb 2002
    Location
    Auckland
    Posts
    14,645
    Mentioned
    19 Post(s)
    Tagged
    3 Thread(s)
    Thanks, Cups.

    As the author, I was about to recommend the same thing (linked in my signature) as it has helped many members (and is repeated, in part, in this board's sticky threads).

    Regards,

    DK
    David K. Lynn - Data Koncepts is a long-time WebHostingBuzz (US/UK)
    Client and (unpaid) WHB Ambassador
    mod_rewrite Tutorial Article (setup, config, test & write
    mod_rewrite regex w/sample code) and Code Generator


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •