Forum Moderators: coopster

Message Too Old, No Replies

Cloaking URL?

         

angst

2:35 pm on Sep 9, 2005 (gmt 0)

10+ Year Member



Hello,
ok, I've build a link directory, and categories, sub-categories, and optional additional categories with in those.

I make a script to read all of these and make folders using the cat & sub-cat names and generated index.php files within them all.

this was to make linking simpler for users linking back to the site.

so how insted of
index?page=list?cid=1&scid=23&ascid=11
they just see:
[localhost...]

only problem is that when I go to [localhost...]
right away it change in the address bar back to that long messy querystring.

is there a way to make it show as only?http://localhost/links/canada/videogames/

and if so, could some one please show me an example of show this can be done?

thanks in advance for your time!
-Ken

stuartc1

2:49 pm on Sep 9, 2005 (gmt 0)

10+ Year Member



2 options I can think of...

1. Use Mod-Rewrite
2. Use an include file in the index.php of the folder... for example in /localhost/something/else/and/so/on/index.php

use:
<? include '/localhost/indes.php?hsh=636&jdj=hdh';?>

angst

2:54 pm on Sep 9, 2005 (gmt 0)

10+ Year Member



yah, right now I'm generating an index.php file in each dir with:

<? header('Location: [localhost...]

but thats the url that people see when it loads,

and I want them to see:
[localhost...]

also how would mod-rewrite help me?

thanks again for your time!
-Ken