Virtual Directories - or something of that nature

free web hosting
Open Discussion > General > Hosted Members Area

Virtual Directories - or something of that nature

moldboy
How can i make trap17 to redirect a user to a particular page when they enter a totaly random one, for example, I want to redirect all entries above /pages to /pages, so if the user were to type mysite.trap17.com/pages/asdf/ewrtfg/xvcb/drfy/sertg/asdf or something else totaly random it would automaticaly bring him/her back to mysite.trap17.com/pages.

This would be for creating a member type thing so I can have virtual directories defined, I can say to a user your page is mysite.trap17.com/pages/username so that when they type that page they are redirected to mysite.trap17.com/pages and a database and script generates their page, using passed redirect informaiton. It wouldn't be a big homepage just a simple user portal so I feel that making a folder for each user would be a job far to large and taxing, plus this way a database could be used.

I hope this is the right form, don't know where else to put it as a particular language hasn't come up yet.

Reply

guangdian
i think erro custom 404 page would doing that.but or nto?i am using that,but sometimes it don't help.

Reply

BuffaloHELP
I think guangdian has the correct idea there. Whenever a wrong site/page is called your 404 error page shows as the default page. TRAP17's cPanel offers customizable 404 page that you can set it to say anything or do anything. You can write a 404 error message and insert a code to redirect to any URL with or without time delay.

Good suggestion, guangdian.

Reply

moldboy
See I'd thought of that, but that would efect the entire site, I just want the 404 to run the script if the typed address is in the subdirectory of /pages not everywhere else. I know I could write a script for that also, but I'm not there yet. Unless there is a way to change the 404's for diffrent drectorys?

Reply

tuddy
That would require scripting of some sort. If they requested anything higher then mysite.trap17.com/pages/.. then they'd be redirected to 'mysite.trap17.com/pages', but if the script found to show that it was mysite.trap17.com/test then they would be redirected to 'mysite.trap17.com'?

Reply

Mithshark
You would have to go in and set every directory (That isnt top level) to what you want it at... Have fun, lol.

Reply



Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

(Maximum characters: 10,000)
You have characters left.

Recent Queries:-
  1. ewrtfg - 629.85 hr back. (2)
Similar Topics

Keywords : virtual, directories, nature

  1. Directory Restricted?
    I can't edit one of my site's directories (7)
  2. Pointing Domains To Diffrent Directories Or Subdomains
    with Masking - Domain issues (6)
    Okay guys, I'm having a bit of a problem regarding my website and domains. Basically, I have
    about 6 domains...I want 3 or 4 of them to go to my main site (a blog), and the other 2 to go to
    another directory of the site (a graphics forum), so I've been trying to set up my cpanel to be
    able to do this. The current setup is like this: plusone.trap17.com -- my blog
    plusone.trap17.com/forums or forums.plusone.trap17.com-- graphics forum As an example, I have these
    two domains registered: jrockett.info plusoneconcepts.info and I want them to direct like this: j....
  3. Directory Questions Using Cuteftp
    what are these files/directories for? (4)
    i cant seem to ftp to my site proporly, i can access my domain through cute ftp but a bunch of files
    show up, some of them are non existant and have "/" in them etc and their are no such folders in
    reality... i really need to upload new phpnuke themes and cant seem to do it... someone plz help
    me! Renamed title and description to reflect the topic. ....
  4. I Keep Getting Errors When..
    ..trying to view directories on my site (5)
    My site is www.subzero.trap17.com However, I set the servers in GoDaddy for my domain to
    ns1.trap17.com and ns2.trap17.com Every time I try to go to a directory on the site (for example,
    /boards) I always get a 500 error. I keep getting it and even got it when trying to log into my
    cPanel. It's extremely annoying! /mad.gif' border='0' style='vertical-align:middle'
    alt='mad.gif' /> Can somebody please tell me why I get these errors?....

    1. Looking for virtual, directories, nature

*RANDOM STUFF*





*SIMILAR VIDEOS*
Searching Video's for virtual, directories, nature

*MORE FROM TRAP17.COM*
advertisement



Virtual Directories - or something of that nature



 

 

 

 

ADD REPLY / Got an Opinion! a humble request :-) RAPID SEARCH! Free Hosting [X]
Express your Opinions, Thoughts or Contribute your information that might help someone here.
Ask your Doubts & Queries to get answers.. "Together, We enlight each other!"
Register FREE for AD-FREE forum, Create your own topics, Ask Questions, track topics, setup subscriptions & notifications and Get a Free Website w/ Email and FTP.
500MB Space *No Ads*, CPanel, FTP, PHP, MySQL, EMails - 100% FREE