Click to See Complete Forum and Search --> : Url
jasonlim67
12-02-2002, 04:05 AM
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.
Rick Bull
12-02-2002, 06:25 AM
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?
Klyve1
12-02-2002, 03:30 PM
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.
jasonlim67
12-02-2002, 09:23 PM
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.
Klyve1
12-03-2002, 03:37 AM
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?
Rick Bull
12-03-2002, 05:53 AM
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.