.htaccess rewrite URL - and playground -


i have following url:

http://example.com/reviews/view-course?courseid=933 

which i'd show as:

http://example.com/933/somethingdynamichere 

this i'm trying blank page:

rewriterule ^([^/]*)$ /reviews/view-course?courseid=$1 [l] 

is there better way this? also, importantly, there playground can try changes , see results on fly can learn more?

update

i have html5 angular rewrite rules in file total follows:

#angular html5 rewritecond %{request_filename} -s [or] rewritecond %{request_filename} -l [or] rewritecond %{request_filename} -d rewriterule ^.*$ - [nc,l]  rewriterule ^(.*) /reviews/index.html [nc,l] 

your pattern not matching desired pretty uri. use rule:

rewriterule ^(\d+)/[^/]+/?$ reviews/view-course?courseid=$1 [l,qsa] 

Comments

Popular posts from this blog

yii2 - Yii 2 Running a Cron in the basic template -

asp.net - 'System.Web.HttpContext' does not contain a definition for 'GetOwinContext' Mystery -

mercurial graft feature, can it copy? -