Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

3
  • 3
    What? Strings in PHP are never parsed for comments. You need to post your actual code, and some more description of what you're doing, because currently your question makes no sense Commented Jan 17, 2014 at 18:47
  • I just dont know why, the part #controller gets threated as comment. Try it yourself, with this setup: .htaccess : RewriteRule ^(.*)$ /index.php?url=$1 [QSA,L] | index.php : echo $_GET['url']; | Tell me what you get, same problem or it works for you? Commented Jan 17, 2014 at 18:50
  • 1
    A RewriteRule won't ever see anything after the # mark in a URL, as the browser never sends it to the server. Commented Jan 17, 2014 at 18:51