Forum Moderators: phranque

Message Too Old, No Replies

another mod rewrite issue

basic things

         

kadnan

5:41 am on Mar 9, 2004 (gmt 0)

10+ Year Member



Hi All

i am here after long time,i am sorry i am gonna ask basic things again as i asked them an year ago but since i didnt have such usage so I had forgot
now I have feq queries

1)i want to replace .php extension of with some other extension for example "xyz"

my site would have both simple url as well as complex url like [domain.com...] or

htp://domain.com/file.php?f=file2.php

these 2 schemes i have been using for my sites

2)second question is that i want user based url
i want when user go to [user1.domain.com...] it actually executes [domain.com...]
or
[domain.com...] for [user2.domain.com...]

3)need link of basic tutorial bye one of admin here in which he gives lots of easy examples

Kindly help me out

Thanks in advance

-adnan

jdMorgan

1:46 am on Mar 15, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



adnan,

This may be the link you were looking for:

Introduction to mod_rewrite [webmasterworld.com]

Follow the the links in the first post to the Apache documentation; The Apache URL Rewriting Guide contains many good examples.

Jim

kadnan

9:35 am on Mar 15, 2004 (gmt 0)

10+ Year Member


Thanks for your reply,i have been reading the document,
i need to ask necessary arrangments for .htacces file
do i need to edit httpd.conf as well to run mod rewrite?

thanks

-adnan

closed

3:12 am on Mar 17, 2004 (gmt 0)

10+ Year Member



In httpd.conf, you'll need to uncomment the line for the mod_rewrite module, and if you want Apache to use .htaccess, you'll have to make sure that
AllowOverride
is not off.