troubleshooting Question

Need mod_rewrite settings

Avatar of bennybutler
bennybutler asked on
Apache Web ServerLinux Networking
14 Comments1 Solution300 ViewsLast Modified:
Ok, I don't know regex, not mod rewrite... I'm doing something I think mod_rewrite can handle, but I don't have alot of time and the docs aren't sinking in.

I want this in an htaccess file in the root of the website.

When a user visits
http://www.mysite.com/bob/  (which bob doesn't exist)(make sure this is with our without trailing slash)
they get http://www.mysite.com/index.php?aff=bob

If http://www.mysite.com/bob/ DOES exist, they get it.

thanks
ASKER CERTIFIED SOLUTION
Join our community to see this answer!
Unlock 1 Answer and 14 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 14 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros