CAN ANYONE TELL ME THIS RewriteEngine FUNCTION?

Started on the old forum in November 2011 · view the original in the archive · old links redirect here

1 reply · 373 views · started 15 years ago · 1 min read

2 participants
puge Developer · 54 posts #1

Can anyone tell me about this RewriteEngine? Is function:

RewriteEngine On RewriteBase / RewriteRule ^(\w+)$ $1.php RewriteRule ^(\w+)((\w+)/(\w+))$ $1.php?$2=$3 RewriteRule ^(\w+)((\w+)/(\w+)/(\w+)/(\w+))$ $1.php?$2=$3&$4=$5 RewriteRule ^(\w+)((\w+)/(\w+)/(\w+)/(\w+)/(\w+)/(\w+))$ $1.php?$2=$3&$4=$5&$6=$7 RewriteRule ^(\w+)/(\w+)/(\w+)/(\w+)/(\w+)/(\w+)$ $1/$2.php?$3=$4&$5=$6 RewriteRule ^(\w+)/(\w+)/(\w+)/(\w+)/(\w+)/(\w+)/(\w+)/(\w+)$ $1/$2.php?$3=$4&$5=$6&$7=$8 RewriteRule ^(\w+)/(\w+)/(\w+)/(\w+)/(\w+)/(\w+)/(\w+)/((\w+)-(\w+)) $1/$2.php?$3=$4&$5=$6&$7=$8 RewriteRule ^(\w+)/(\w+)$ $1/$2.php

just_m3. Developer · 199 posts #2

RewriteRule ^(\w+)$ $1.php // prefixed php ex yourname.php RewriteRule ^(\w+)((\w+)/(\w+))$ $1.php?$2=$3 //prefixed.php with $action = $get-action

i can't detail because i dont know .. just a small idea about how it works

This is ten percent luck, twenty percent skill Fifteen percent concentrated power of will Five percent pleasure, fifty percent pain 😂And a hundred percent reason to remember the name!

Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close