dcsimg
www.webdeveloper.com
Results 1 to 6 of 6

Thread: Url

  1. #1
    Join Date
    Dec 2002
    Location
    US
    Posts
    7

    Url

    Let's say I have a file named "a.html". So, the URL for this file will be "http://www.myname.com/a.html". But, when I type "http://www.myname.com/index.html?page=a", it doesn't come to the "a.html" file. Instead, it will come to the "index.html". May I know how to fix this error?

    Thank you.

  2. #2
    Join Date
    Nov 2002
    Location
    England
    Posts
    275
    How would index.html know you wanted to redirect to a.html? You would have to have a server-side page, like index.php, then in that redirect to the correct page. Have you got any server-side scripting languages? PHP, ASP, Perl etc?

  3. #3
    Join Date
    Nov 2002
    Location
    Hove, UK
    Posts
    160
    You need to know that this isn't an error at all.

    Anything onwards from the '?' is ignored by the browser and used by whatever code you're using.

  4. #4
    Join Date
    Dec 2002
    Location
    US
    Posts
    7
    I refer to Rick Bull's reply.My server only supports PERL language. May I know what do you mean by server-side scripting languages? I hope you can help me.

    Thanks.

  5. #5
    Join Date
    Nov 2002
    Location
    Hove, UK
    Posts
    160
    Server side scripting is where all the work is done on the server before sending it to the user/browser.
    Client side is when the work is done in the users browser.

    Server side - PHP
    Client side - Javascript

    What is it exactly you are wanting to do?

  6. #6
    Join Date
    Nov 2002
    Location
    England
    Posts
    275
    Yeah, Perl is a server-side scripting language, and you should be able to do something similar to what you want. I'd post in the CGI forum if I were you.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles