Jump to content

MAPA3M

Members
  • Posts

    8
  • Joined

  • Last visited

Profile Information

  • Gender
    Not Telling
  • Location
    New York

MAPA3M's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Xanga seems to be doing it the way that I wrote... if the file or directory doesn\'t exist, rewrite it to home.asp?user=blah
  2. That seems very insecure and error-prone.... why not just go with the /~username setup? Worked for everyone for years and is close to being foolproof
  3. This is a tricky one... how do you tell if the request is invalid or is for a user or is for a regular file? for example... you have a user \"john\".... this would make the request http://www.blah.com/john valid from the logical point of view... however, to Apache that request and http://www.blah.com/no-such-user and http://www.blah.com/index.html will look exactly the same... so while I did set up a mod_rewrite that\'ll do what you want, it doesn\'t seem very useful because apache will rewrite EVERY REQUEST that\'s 404 to view.php?user Best that you can do is something like http://www.blah.com/~validuser That way you can either use apache\'s mod_userdir or set up a simple mod_rewrite rule to forward those users Now, for reference.... This is the answer to your original question...maybe you can improve on it RewriteEngine ON RewriteCond /your/docroot/%{REQUEST_FILENAME} !-f RewriteCond /your/docroot/%{REQUEST_FILENAME} !-d RewriteRule ^/(.*) /view.php?user=$1 This is what can forward /~user RewriteEngine ON RewriteRule ^/~(.*) /view.php?user=$1 Hope this helped!
  4. either that or you forgot to compile MySQL support into PHP
  5. remove the error supression (@) in front of the myslq_query and see if mysql spits up some kind of an error message.
  6. This is an interesting problem... let me get off work and get to an Apache server I\'m not afraid to break :-) I\'ll work on it then
  7. If you\'re not an experienced developer and need mailing lists FAST, I suggest looking at something like MajorDomo or other opensource mailing lists. I\'m sure www.sourceforge.net has something of that sort
  8. RewriteEngine On RewriteCond ! http://boo.com/%{REQUEST_URI} -U RewriteRule http://boo.com/(.*) http://boo.com/view.php?user=$1 Just a wild guess, but it might work
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.