Url testyear2006action_add.html how to redirect the above url to the following test. php file & gt; test. php? How to change year2006 & amp; action_add & nbsp;. htaccess # enable RewriteEngine mode & nbsp; url redirection
Test/year/2006/action/_add.html how to redirect the above url to the following test. php file
>>>
Test. php? Year = 2006 & action = _ add
How to change. htaccess
# Enable RewriteEngine mode
RewriteEngine On
# Do not modify Rewrite system rules
RewriteRule ^ archiver/(fid | tid)-[0-9] + \. html) $ archiver/index. php? $1
RewriteRule ^ forum-([0-9] +)-([0-9] +) \. html $ forumdisplay. php? Fid = $1 & page = $2
RewriteRule ^ thread-([0-9] +)-([0-9] +)-([0-9] +) \. html $ viewthread. php? Tid = $1 & extra = page \ % 3D $3 & page = $2
RewriteRule ^ space-(username | uid)-(. +) \. html $ space. php? $1 = $2
RewriteRule ^ tag-(. +) \. html $ tag. php? Name = $1
RewriteRule ^ k/(. *)/(. * example .html $/article. php? Tid = $2 & dtime = $1
ErrorDocument 404/errors/notfound.html
------ Solution --------------------
RewriteRule ^ test/year/([0-9] +)/action/([a-z \-] +) \. html $ test. php? Year = $1 & action = $2
There is no test. you can choose not