moldboy
Oct 25 2005, 12:58 AM
| | 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
Oct 25 2005, 01:01 AM
i think erro custom 404 page would doing that.but or nto?i am using that,but sometimes it don't help.
Reply
BuffaloHELP
Oct 25 2005, 01:09 AM
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
Oct 25 2005, 04:12 AM
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
Oct 27 2005, 12:25 PM
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
Oct 27 2005, 03:42 PM
You would have to go in and set every directory (That isnt top level) to what you want it at... Have fun, lol.
Reply
Recent Queries:--
ewrtfg - 629.85 hr back. (2)
Similar Topics
Keywords : virtual, directories, nature
- Directory Restricted?
I can't edit one of my site's directories (7)
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....
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. ....
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?....
Looking for virtual, directories, nature
|
*RANDOM STUFF*
*SIMILAR VIDEOS*
Searching Video's for virtual, directories, nature
*MORE FROM TRAP17.COM*
|
advertisement
|
|