<p>On some servers you might need to add in general.php</p>

<pre><code>'omitScriptNameInUrls' =&gt; true
</code></pre>

<p>See <a href="https://craftcms.com/docs/config-settings" rel="nofollow noreferrer">https://craftcms.com/docs/config-settings</a></p>

<p>Hope that helps</p>

CC BY-SA 3.0
2016-12-27T13:48:40.863Z
2016-12-27T13:48:40.863Z
noregt
<p>When accessing www.myurl.com/<code>services</code>, I get this error <strong>below</strong> the content of my page:</p>

<p><code>The server encountered an internal error or misconfiguration and was unable to complete your request.</code></p>

<p>I don't get this error if I access www.myurl.com/<code>index.php/services</code>. I'm new to Craft, but am particularly confused, because nothing else on my site is broken, I just keep getting this error appended to the end of my html. Additionally, I have followed the directions to include an <code>.htaccess</code> file in the web root. This error does not occur locally. Thoughts?</p>

CC BY-SA 3.0
2016-12-27T09:04:54.397Z
Do you see any indication of where the error occurs in the error log of your web server?
Kristian J.
CC BY-SA 3.0
2016-12-27T13:45:29.240Z
Did you not change the htacces to .htaccess? (happens to me occasionaly)?
noregt
<url><error><htaccess>
Misconfiguration error when accessing URL without file name
# Misconfiguration error when accessing URL without file name

(Asked by: username_0 on 2016-12-27)

When accessing www.myurl.com/`services`, I get this error **below** the content of my page:

`The server encountered an internal error or misconfiguration and was unable to complete your request.`

I don't get this error if I access www.myurl.com/`index.php/services`. I'm new to Craft, but am particularly confused, because nothing else on my site is broken, I just keep getting this error appended to the end of my html. Additionally, I have followed the directions to include an `.htaccess` file in the web root. This error does not occur locally. Thoughts?

**Tags:** url, error, htaccess

> **Comments:**
> **username_1**: Do you see any indication of where the error occurs in the error log of your web server?  
> **username_2**: Did you not change the htacces to .htaccess? (happens to me occasionaly)?  

---

## 1 answers

### Answer by username_2 on 2016-12-27. Score: 1

On some servers you might need to add in general.php
'omitScriptNameInUrls' => true

See https://craftcms.com/docs/config-settings
Hope that helps


---

