...

View Full Version : Hiding url extensions to show index only



masterofollies
06-04-2008, 02:43 AM
First off let me say that text support does not know what they are talking about.

So Alot of my website is like index.php?do=account or like lottery.php?do=main

I wanted it to show only the file name, so like index.php or lottery.php I would prefer to keep just the website showing with no file names shown, but that's unlikely to happen. I know no one will fully do it for me, but will someone direct me in what I need to look for and how to go about doing it? Thanks

mlseim
06-04-2008, 04:22 AM
You'll be looking on Google for: .htaccess rewrite rule

I don't have an exact example, but there are many
good tutorials. Perhaps someone on here might be
good at .htaccess.

masterofollies
06-04-2008, 04:40 AM
Hmm alright I will look for htaccess and hiding urls. The tech support dude told me that I have to make html frames to hide it.

oracleguy
06-04-2008, 05:24 AM
The only way to make the URL stay the same through out the site is to use frames or use AJAX both of which are horrible ideas to do because they cause more harm than good in that instance.

The rewrite rules in htaccess work such that you can take a url such as:

yoursite.com/article/22 and it would rewrite it on the server (as an example) to yoursite.com/article.php?id=22

But there isn't a way using rewrite rules to make the URL be constant and frankly there aren't any good reasons to do so.

masterofollies
06-04-2008, 03:59 PM
So instead of index.php?do=main
it's not possible to just show index.php?

Pennimus
06-04-2008, 04:14 PM
Yes it's possible, using frames as your tech support said, or Flash, or using AJAX, or just loading the entire site into one page as hidden layers and using javascript to swap from one div to the next. But people are telling you it's a poor idea, which it is.

masterofollies
06-04-2008, 11:13 PM
*sigh* ok I will ignor it.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum