Rewrite Rule Not working .htaccess -


i have following url trying make seo friendly url. tried few of online rewrite validators , validated perfect rules have written in .htaccess, it's still not working when uploaded server. appreciated.

i want http://example.com/deal/de3582c47f/ redirected (without changing url end user) http://example.com/dealinfo.php?offerid=de3582c47f.

there multiple sites deployed in common root directory. below .htaccess rules:

options +followsymlinks rewriteengine on rewritecond %{http_host} ^example\.com [or] rewritecond %{http_host} ^www\.example\.com rewriterule ^deal/(.+)/$ dealinfo.php?offerid=$1 [l] 

i not sure going wrong?

actually.. rewritecond rules have, tell latest rule, should work on domains.

does virtualhost definition has allowoverride all?

but go with:

rewriteengine on rewritecond %{http_host} ^(www\.)?example.com [nc] rewriterule ^deal/(.+)/ /dealinfo.php?offerid=$1 [l] 

i added slash @ begining of dealinfo.php, on documentroot folder defined on virtualhost domain, instead of actual 'fake' folder.


Comments

Popular posts from this blog

php - Admin SDK -- get information about the group -

dns - How To Use Custom Nameserver On Free Cloudflare? -

Python Error - TypeError: input expected at most 1 arguments, got 3 -