1. Computer problem? Tech Support Guy is completely free -- paid for by advertisers and donations. Click here to join today! If you're new to Tech Support Guy, we highly recommend that you visit our Guide for New Members.

Solved: .htaccess more than 1 base variable

Discussion in 'Web Design & Development' started by tex0gen, Feb 6, 2013.

Thread Status:
Not open for further replies.
Advertisement
  1. tex0gen

    tex0gen Thread Starter

    Joined:
    Jun 10, 2007
    Messages:
    286
    I have a site where

    index.php?pagename=name

    But it also uses:

    index.php?new=newone

    Iv tried various ways of getting the url to show as:

    site.com/name

    site.com/newone

    But it seems i can only get one or the other to work. Any ideas?
     
  2. JiminSA

    JiminSA

    Joined:
    Dec 15, 2011
    Messages:
    3,349
    First Name:
    Jim
    Hope you don't think I'm being rude, but here goes...
    What are you hoping to achieve? Your problem can probably best be solved by using reverse engineering, as I for one can't see the expected outcome from your explanation, sorry:(
     
  3. JiminSA

    JiminSA

    Joined:
    Dec 15, 2011
    Messages:
    3,349
    First Name:
    Jim
    I just found this snippet which may or may not be relevant...
     
  4. tex0gen

    tex0gen Thread Starter

    Joined:
    Jun 10, 2007
    Messages:
    286
  5. JiminSA

    JiminSA

    Joined:
    Dec 15, 2011
    Messages:
    3,349
    First Name:
    Jim
    Unfortunately you can only have one or the other not both.:(
    Can you not just redirect both (either) entry type in your index script?
    How and where do you specify the entry type the user wants? - maybe the correct direction should be handled there?
     
  6. tex0gen

    tex0gen Thread Starter

    Joined:
    Jun 10, 2007
    Messages:
    286
    I just wanted seo friendly urls. Iv solved the problem by just adding an extra directory to the htaccess rule. I only needed to do the above with 3 urls. Anyway, thanks for your help.
     
  7. JiminSA

    JiminSA

    Joined:
    Dec 15, 2011
    Messages:
    3,349
    First Name:
    Jim
    Glad you sorted it:)
     
  8. Sponsor

As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 733,556 other people just like you!

Thread Status:
Not open for further replies.

Short URL to this thread: https://techguy.org/1088423

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice