I have a small website on Simple PHP with different folders/sections and files working with different Parameters.
ie
http://www.domain.com/folder1/file1.php?id1=66&id2=title_name
http://www.domain.com/folder1/file2.php?id1=85&id2=11&id3=title_name
MY TRY
RewriteRule "^/dummy1/(.*)/(.*)/" "/folder1/file1.php?id1=$1&id2=$2"
RewriteRule "^/dummy2/(.*)/(.*)/(.*)/" "/folder1/file2.php?id1=$1&id2=$2&id3=$3"
Please help me
Try :
RewriteRule ^/?dummy1/(.*)/(.*)/?$ /folder1/file1.php?id1=$1&id2=$2 [QSA,NC,L]
RewriteRule ^/?dummy2/(.*)/(.*)/(.*)/?$ /folder1/file2.php?id1=$1&id2=$2&id3=$3 [QSA,NC,L]
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.