SitePoint Sponsor

User Tag List

Results 1 to 4 of 4

Hybrid View

  1. #1
    Non-Member
    Join Date
    Nov 2011
    Posts
    19
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    How to rewrite Url of joomal website?

    Hi,

    how i can rewrite urls of joomla websites, i have so many trouble to make search engine friendly url for seo so i can get good ranking but i have trouble to do this, please help me.

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

    Modifying the mod_rewrite of a CMS is dangerous as you also need to modify the link creation module and the "fetch from the database" module. These days, CMSs have that sort of mod built-in so I'd recommend that you look around your Joomla control panel before attempting any modification of Joomla's mod_rewrite code.

    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

  3. #3
    Non-Member
    Join Date
    Nov 2011
    Posts
    19
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    can you please explain me more about steps how to do?

  4. #4
    Certified Ethical Hacker silver trophybronze trophy dklynn's Avatar
    Join Date
    Feb 2002
    Location
    Auckland
    Posts
    14,604
    Mentioned
    19 Post(s)
    Tagged
    2 Thread(s)
    Barry,

    I don't use Joomla so I'd have to advise you to either look at the control panel that they, no doubt, provide for your use OR go to Joomla's forum.

    If I were to do it, I'd look at the index.php's code to determine which module is called to generate the links and which module handles the incoming request (to see how {THE_REQUEST} is parsed). Finding them will not be a trivial exercise nor would making the conversion to "SEO friendly" URIs. In other words, use their control panel as that's the safest way to go and doesn't entail ripping the code apart.

    For the wilderness-wally.com website, I create the links myself by pulling the article titles from the DB and replacing spaces with _'s to generate the links. When receiving a request, the handler script converts the URI by replacing _'s with spaces before accessing the record from the DB. Please note that only letters, digits and a few punctuation characters are acceptable in a URI (http://www.ietf.org/rfc/rfc2396.txt) so you must take great care to limit the titles to acceptable characters.

    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
  •