Twango Posted April 11, 2011 Share Posted April 11, 2011 I think I know Sorta how to do this.Wouldn't I just need to create a folder, then a file "index.html" with JavaScript using document.location or something?I don't know how to do this! Link to comment Share on other sites More sharing options...
Ingolme Posted April 11, 2011 Share Posted April 11, 2011 It would be better to use Apache's mod_rewrite. And if that's not available, use PHP with a location header. Link to comment Share on other sites More sharing options...
Twango Posted April 11, 2011 Author Share Posted April 11, 2011 Yeah I know the code for redirecting.I just don't really know how to create the sub-directory and random filename. Link to comment Share on other sites More sharing options...
justsomeguy Posted April 11, 2011 Share Posted April 11, 2011 You would want to use URL rewriting instead of creating a bunch of files and folders. Link to comment Share on other sites More sharing options...
Twango Posted April 11, 2011 Author Share Posted April 11, 2011 Yeah... uh, so how would I do that? Link to comment Share on other sites More sharing options...
justsomeguy Posted April 11, 2011 Share Posted April 11, 2011 The first step would be researching URL rewriting to see how it works and how you can use it. Apache uses mod_rewrite, and IIS has it built-in. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.