Results 1 to 5 of 5
  1. #1
    Mithun is offline Member
    Join Date
    Jan 2015
    Posts
    2
    Rep Power
    0

    Default how to display user defined URLs

    I have created a text link on my home page.its Example Domain.

    when a user click on the link, it takes him to a page, streets.php so the url is "www.example.com/toronto_streets.php" but, i want the URL to be displayed as "www.example.com/toronto.on/"

    then when user selects one street from this page, the url will be "www.example.com/street_landing_page.php?street=option" but, i want the URL to be displayed as "www.example.com/toronto.on/house-for-sale-option"

    I am a beginner and i tried with editing .htacccess file but that didnt work...

    Here is what i added to .htaccess file

    " RewriteEngine on

    RewriteRule ^toronto.on/house-for-sale-condo-mls/?$ house-for-sale-condo-mls.php [NC] " ...

    so will the above line redirect "www.example.com/toronto.on/house-for-sale-condo-mls/ " to "www.example.com/house-for-sale-condo-mls.php "?

    when i typed in the URL,http://www.example.com/toronto.on/ho...ale-condo-mls/ , i got this error : The requested URL /toronto.on/house-for-sale-condo-mls was not found on this server.

    ..thank you in advance for all those who r gonna help

  2. #2
    SurfMan's Avatar
    SurfMan is offline Godlike
    Join Date
    Nov 2012
    Location
    The Netherlands
    Posts
    1,991
    Rep Power
    8

    Default Re: how to display user defined URLs

    I wonder where Java comes in to play?
    "It's not fixed until you stop calling the problem weird and you understand what was wrong." - gimbal2 2013

  3. #3
    DarrylBurke's Avatar
    DarrylBurke is offline Forum Police
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    12,059
    Rep Power
    25

    Default Re: how to display user defined URLs

    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

  4. #4
    Mithun is offline Member
    Join Date
    Jan 2015
    Posts
    2
    Rep Power
    0

    Default Re: how to display user defined URLs

    Quote Originally Posted by SurfMan View Post
    I wonder where Java comes in to play?
    thank you for your answer, so in which forum should i post this question to get a knowledgable answer?

  5. #5
    DarrylBurke's Avatar
    DarrylBurke is offline Forum Police
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    12,059
    Rep Power
    25

    Default Re: how to display user defined URLs

    That 'answer' was a question you haven't answered.

    db
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

Similar Threads

  1. Use of user defined exception
    By jmohandos304 in forum New To Java
    Replies: 17
    Last Post: 10-09-2014, 08:29 PM
  2. User-Defined Classes
    By Reptyle216 in forum New To Java
    Replies: 3
    Last Post: 12-03-2013, 09:31 AM
  3. Set Return Value on User Defined Type
    By Jdsfighter in forum New To Java
    Replies: 3
    Last Post: 11-12-2012, 05:36 AM
  4. Set of user defined class
    By TelliameD in forum New To Java
    Replies: 4
    Last Post: 07-05-2012, 09:58 AM
  5. User Defined Method
    By overcranked in forum New To Java
    Replies: 6
    Last Post: 04-09-2010, 01:02 AM

Tags for this Thread

Posting Permissions

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