Web Hosting Talk







View Full Version : Write my .htaccess file, please... (mod_rewrite)


CreativeLogic
04-22-2004, 11:57 PM
Ok whatever I do I CANNOT get this to work. I need to go from:

http://AnySubDomain.mydomain.net/AnyFile.php?Extra=Vars&And=More

TO:

http://www.mydomain.net/users.php?user=AnySubDomain&Extra=Vars&And=More

I need someone to write this .htaccess file. Either first person to post the working .htaccess file or the first person to contact me and give it to me through email or AIM or any other way will get...

$5 through paypal...

Contacts:
AIM: MyImgs Support
@: WhSox21@cinci.rr.com
OR PM me...

Aushosts
04-23-2004, 12:09 AM
Does this help?

rewriteEngine on
rewriteBase /
rewriteRule (.*)/(.*)/(.*)/(.*)\.htm$ /expired.php?domain=$1&user=$2&Extra=$3&And=$4

So /domain/user/extra/and.htm

I think that's what your after - I'm not sure.

CreativeLogic
04-23-2004, 12:13 AM
No thats not what I'm after. The files would not be .htm and it would be subdomains that are most important.

Please keep in mind that the subdomains won't actually exist... Not sure if that matters.

CreativeLogic
04-23-2004, 12:15 AM
Oh and thought I would add... I have this and it only works if I do mydomain.net and not anything.mydomain.net...

<IfModule mod_rewrite.c>
Options +FollowSymLinks
RewriteEngine On
RewriteCond %{HTTP_HOST} ^mydomain\.net$
RewriteRule ^(.*)$ http://www.mydomain.net/users.php?user=$1 [R=301,L]
</IfModule>

My logs also don't show anything either...

CreativeLogic
04-23-2004, 11:57 AM
Somebody help me... I'm willing to pay! I know its not that hard but its beyond my abilities!