Web Hosting Talk







View Full Version : URL Question


stripeyteapot
03-20-2004, 10:22 AM
Hey,

I have a URL question. My coders won't be able to get back to me until Monday, so can someone please help me out?

I want to hide the extension of a URL so people cannot see it's direct path. For example,

http://www.pmodhost.co.uk/index.php?extension

I would want that to show as,

http://www.pmodhost.co.uk/

or

http://www.pmodhost.co.uk/index.php

If they were to go straight to the top URL. Any ideas? Know hows?

Thanks,
Paul B. Riddick

SimonMc
03-20-2004, 01:43 PM
Originally posted by 4 Degrees
Hey,

I have a URL question. My coders won't be able to get back to me until Monday, so can someone please help me out?

I want to hide the extension of a URL so people cannot see it's direct path. For example,



I would want that to show as,



or



If they were to go straight to the top URL. Any ideas? Know hows?

Thanks,
Paul B. Riddick

I think you can do this with modrewrite in appache. You will need to find out how from someone more knowledgable than me but I think it can be done this way.

Simon

Simon

stripeyteapot
03-20-2004, 03:47 PM
Thanks for your input, I'll look into it abit more :)

Regards,
Paul B. Riddick

sk8planett
03-21-2004, 05:08 PM
It depends who your host is. My host has a cPanel option that redirects. So that makes it possible for people to type yoursite.com and it will redirect to yoursite.com/fullurl and it still displays yoursite.com. Try going to your cPanel at your host.

OIS
03-22-2004, 10:44 PM
If you have mod_rewrite, you can use this in your .htaccess file:

RewriteEngine On
RewriteRule ^$ index.php?var1=a&var2=b