SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Enthusiast Daniel,D,D's Avatar
    Join Date
    Apr 2009
    Location
    Sandy utah USA
    Posts
    51
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    How to change the address to make it work!

    Hi I have a question.

    I have a catalog lookup that links to a ton of different pages,
    And I want it to work dynamically (with one or two lines of code)
    but I'm working with virtue mart ,
    (well working with someone who's working with virtue mart)
    But virtue mart is messing up the address bar.
    heres a link to the web site

    http://injectorexchange.com/

    and virtuemart is turning the link to the buy page into thins

    http://injectorexchange.com/index.php ?option=com_virtuemart&page=shop.browse&category_id=145&Itemid=1&vmcc hk=1&Itemid=1

    and I want it to just be the number of the injector

    e g (http://injectorexchange/numberhere)

  2. #2
    SitePoint Zealot
    Join Date
    Dec 2006
    Posts
    182
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    If you are running Apache, you can use an .htaccess file to do a mod_rewrite:
    Code:
    RewriteRule ([0-9+]) index.php?option=com_virtuemart&page=shop.browse&category_id=145&Itemid=$1&vmcchk=1

  3. #3
    Twitter: @AnthonySterling silver trophy AnthonySterling's Avatar
    Join Date
    Apr 2008
    Location
    North-East, UK.
    Posts
    6,111
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    Remember though, you'll also have to alter the code which generates the html too.
    @AnthonySterling: I'm a PHP developer, a consultant for oopnorth.com and the organiser of @phpne, a PHP User Group covering the North-East of England.

  4. #4
    SitePoint Enthusiast Daniel,D,D's Avatar
    Join Date
    Apr 2009
    Location
    Sandy utah USA
    Posts
    51
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I would if I could but I can't (where using joomla!)
    And I don't know where the code files are.
    I know you don't know how my files are set up
    could you send me in the right direction to find them.
    if you could.


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
  •