Forum Moderators: open

Message Too Old, No Replies

Root relative redirect

         

COBodhi

3:30 pm on Mar 17, 2005 (gmt 0)

10+ Year Member



I am using FP2003 and want to create redirect pages for some addresses coming up on a report as receiving lots of hits but they don't exist.
What I know:
Go to the properties of the page
Custom tab
Add a System Variable
Name it REFRESH
Value = x; URL=http://www.zzz.com
where x=# of seconds before refresh and www.zzz.com is the new page
Is it possible, though to refer to pages with a root relative reference in the same web?
For example, the "phantom" page is licenses.html in the licenses subfolder but I need the redirect to go to licenses.html in cotter subfolder which is one level above the licenses subfolder in the hierarchy. IOW, I know how to refer to another page in the same subfolder but what about those in other subfolders in various levels of the hierarchy?
Thanks!

tedster

12:37 pm on Mar 21, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hello COBodhi and welcome to the forums. Sorry your question went so long without a response.

If I get you correctly, you want to go "up" one directory and then "down" into the directory structure from there, correct? If so, you can use ../ to go "up" the directory tree by one folder. Using 2 ../../ goes up two directories, and so on.

So in your example, I think the relative expression would be "../../cotter/license.html" -- since you say that /cotter/ is actually a level above /license/ and not parallel (on the same level) which would be "../cotter/license.html"

BlobFisk

1:05 pm on Mar 21, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



If you are working in a domain, you can also say:

/images/top/file.gif

This will tell the server to go to its root and then down through the images and top directories. Writing this is the same as writing "www.example.com/images/top/file.gif".

Caveat: If you are using a hosting service, it is worth checking whether this is supported...

COBodhi

2:08 pm on Mar 21, 2005 (gmt 0)

10+ Year Member



Thanks! I'll give those a shot.