Ben müşteri alıntılar görüntülemek için birkaç php sayfaları kodlama oldu, rep.php üzerinde, kullanıcı belirli bir teklifle ilgili detaylı bilgileri görmek için (? QuoteID = Q123456 quotedetails.php için değişken olarak POST quoteID) ayrıntıları görüntüle düğmesine tıklayabilirsiniz.
Sonra kullanabilirsiniz. Htaccess 'quotedetails/Q123456.html' için 'quotedetails.php? QuoteID = Q123456' den uzatılmasını ve rewrited url html tüm php sayfaları yapmak, her şey XAMPP üzerinde çalışıyor, ama WAMP altında, rewrited url göstermek değil O quotedetail sayfada veri, i eski url (quotedetails.php? quoteID = Q123456) kullanılarak test, iyi çalışıyor, bu yüzden yeni html url (değişken geçemez gibi benim. htaccess kuralları ile yanlış bir şey olmalı sanırım quoteID).
. benim htaccess dosyası:
Options +FollowSymlinks
RewriteEngine on
#sideBar.php edit rep link with the styles below, e.g. all,all.html (showing all)
#or reps/$repID,$repName.html
RewriteRule ^reps/all,all.html$ rep.php?repID=all&repName=all [QSA]
RewriteRule ^reps/([A-Z]+),([A-Za-z\sA-Za-z]+).html$ rep.php?repID=$1&repName=$2 [QSA]
RewriteRule ^reps/([A-Z]+).html$ rep.php?repID=$1 [QSA]
#rep.php including page string, edit pager links in rep.php with following styles,
#\s indicating a white space therefore mod_rewrite can recognise the repName
#e.g. reps/$repID,$repName,$page.html
RewriteRule ^reps/([A-Za-z]+),([A-Za-z\sA-Za-z]+),([0-9]+).html$ rep.php?repID=$1&repName=$2&page=$3 [QSA]
#quotedetails.php rewrite this page url to Q99999.html
#e.g. quotedetails/$quoteID.html
RewriteRule ^quotedetails/(Q[0-9]+).html$ /quotedetails.php?quoteID=$1 [QSA]
#index/addquote/search/viewall/howto page rewrite *.php ---> *.html
RewriteRule ^index.html$ index.php [QSA]
RewriteRule ^addquote.html$ addquote.php [QSA]
RewriteRule ^search.html$ search.php [QSA]
RewriteRule ^viewall.html$ viewall.php [QSA]
RewriteRule ^customer.html$ customer.php [QSA]
RewriteRule ^addcustomer.html$ addcustomer.php [QSA]
RewriteRule ^howto.html$ howto.php [QSA]
RewriteRule ^nice404.html$ nice404.php [QSA]
ErrorDocument 404 /auma_quotes/nice404.html