hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Hosting Security and Technology : Apache ~
Reply

Hosting Security and Technology Configuring and optimizing web hosting servers and operating systems, developing administration scripts, building servers, protecting against hackers, and general security (SSL certificates, etc.)
Forum Jump

Apache ~

Reply Post New Thread In Hosting Security and Technology Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old 07-06-2004, 05:50 PM
vanHelsing vanHelsing is offline
WHT Addict
 
Join Date: Apr 2004
Posts: 148

Apache ~


Running apache in my debian. When i add user, new user url as we well know is http://myserver.com/~newuser/

Now, how can i get rid of ~ ?

I want it like this:
http://myserver.com/newuser/

Reply With Quote


Sponsored Links
  #2  
Old 07-06-2004, 07:43 PM
probonic probonic is offline
Web Hosting Master
 
Join Date: Jul 2002
Location: Manchester, UK
Posts: 774
I think you would probably have to use mod_rewrite to do that. Unfortunately I don't really have any experience with mod_rewrite so I cannot tell you exactly how to do it.

There would really be no other way of doing it because the "~" before the username is what tells Apache to actually look in "/home/username/public_html" or whatever. If the tilde is not there, as far as Apache is concerned you're trying to go to a directory called that.

Maybe someone else here can tell you how to do it using mod_rewrite...

Reply With Quote
  #3  
Old 07-06-2004, 08:13 PM
Sizzly Sizzly is offline
Aspiring Evangelist
 
Join Date: Dec 2003
Posts: 417
mod_rewrite via .htaccess

Code:
RewriteEngine On
RewriteRule ^~(.*)$ $1 [L,NC]
note: untested!

__________________
Adventures in Parenting.org - Are you a parent? Listen to the free podcast and sign up for the newsletter!

Reply With Quote
Sponsored Links
Reply

Related posts from TheWhir.com
Title Type Date Posted
Researchers Urge System Admins to Check for New Apache Web Server Backdoor Malware Web Hosting News 2013-05-01 11:35:53
Apache Web Server Adds Cloud Capabilities with First Major Update in 5 Years Web Hosting News 2012-02-21 16:05:02
The Apache Software Foundation Launches Hadoop v1.0 Web Hosting News 2012-01-05 18:29:16
Oracle is the Latest Vendor to Apply Patch for Apache Killer Flaw Web Hosting News 2011-09-19 14:43:58
Patch Released for Apache Software DDoS Vulnerability Web Hosting News 2011-08-26 15:03:10


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
Advertisement:
Web Hosting News:



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?