Re:Seek geek with expert knowledge in WP3 + Apache2 mod_rewrite
by pavel_lishin on Tuesday October 26, 2010 @05:51PM
(#1836267)
What do you mean by "Page name"?
Also, I should go ahead and tell you that I know very very little about Wordpress, and how it handles things. Would it be feasible to move this part of your project away from Wordpress?
Re:Seek geek with expert knowledge in WP3 + Apache2 mod_rewrite
by dxjones on Tuesday October 26, 2010 @06:03PM
(#1836314)
In WordPress, ... in addition to your (blog) "Posts" you can create a "Page". The typical example would be an "About" page.
In my case, I created a paged called "app". What is nice about this is I can use WordPress as a content management system, I can change Themes easily, etc. ... but embedded inside the page I can put vanilla PHP code.
1. WordPress wants the "Page" name to come last, so I followed your suggestion, but with "app" moved to the end. Same idea as your rule, but rearranged. See .htaccess appended below.
2. The REQUEST_URI is "alpha/beta/app", and the QUERY_STRING "p1=alpha&p2=beta", ...
but the WordPress index.php comes into play and seems to do a REDIRECT (so my app never gets a chance to run)
so that REQUEST_URI becomes "app" and QUERY_STRING is empty. My app code runs, but now it is too late; the parameters are gone.
Any further suggestions?