Forum Moderators: phranque

Message Too Old, No Replies

rewrite php htm

rewrite .htaccess php to htm

         

kmanig

10:15 am on Aug 7, 2005 (gmt 0)



hi all
i m new for .htaccess, please tell me how can i achive the following things

i want :
[domain.com...]
[domain.com...]

which executes:
[domain.com...]
[domain.com...]

please le me now what can i do ..currently lots of things are there in .htaccess as below:

# -FrontPage-

IndexIgnore .htaccess */.?* *~ *# */HEADER* */README*

*/_vti*

<Limit GET POST>
order deny,allow
deny from all
allow from

all
</Limit>
<Limit PUT DELETE>
order deny,allow
deny from all
</Limit>
AuthName www.domain.com
AuthUserFile

/home/nereat/public_html/_vti_pvt/service.pwd
AuthGroupFile

/home/nereat/public_html/_vti_pvt/service.grp
AddType

text/vnd.sun.j2me.app-descriptor .jad
AddType application/java-archive

.jar
AddType application/vnd.rim.cod .cod
AddType

application/vnd.symbian.install .sis

please tell me what i have to add and where..

jd01

7:04 pm on Aug 7, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi kmanig,

Welcome to WebmasterWorld.

First, read this thread: [webmasterworld.com...]

Then, I normally put my rewrites in my htaccess, under all the other info.

The code you will be using will look something like this:

RewriteEngine ON
RewriteRule ^([0-9]+)\.html$ /resource1.php?catid=$1 [L]

Please, keep in mind, we do not ususally write custom code, but would rather help you work through the answer... Read the thread, try out the example and let us know what happens, we will be happy to help you make adjustments and get it working.

Justin