Question

Removing question mark from php install (Expressionengine)

  • Posted on August 9, 2013
  • lpageAsked by lpage

Hi, I am using Expressionengine as a cms. I am trying to clean up my url’s by removing the “index.php” file via htaccess.

All is working well except that I cannot remove the question mark. So…

This Works: http://192.241.163.168/index.php?/site/contact-us The Works: http://192.241.163.168/?/site/contact-us This Does Not: http://192.241.163.168/site/contact-us

Could this be a setting in php?

I have tried every variation I can think of in this htaccess file

BEGIN ExpressionEngine Rewrite

RewriteEngine On

Removes index.php from ExpressionEngine URLs

RewriteCond $1 !.(gif|jpe?g|png)$ [NC] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php?/$1 [L]

END ExpressionEngine Rewrite

Thanks


Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

Sweet! Glad it’s working now :]

[SOLVED] Well, after all that, turns out (as usual) that it was a simple error. The ServerName was not right in the Apache file. Once that was corrected, all works as expected. <br> <br>Thanks Kamal Nasser for all the assistance. Appreciate all the help. Some of your suggestions probably insured that it worked once I DID find the issue, particularly the “AllowOverride All”. <br>

Hmm, weird. It could be a problem with Expressionengine. Try asking in their official forums: <br> <br>http://ellislab.com/forums