<p>Try setting <a href="http://buildwithcraft.com/docs/config-settings#usePathInfo" rel="nofollow">'usePathInfo' => true</a> and <a href="http://buildwithcraft.com/docs/config-settings#omitScriptNameInUrls" rel="nofollow">'omitScriptNameInUrls' => true</a> in your <code>craft/config/general.php</code> file.</p>

CC BY-SA 3.0
2015-01-26T03:09:10.827Z
Got it, that worked. I moved the public files out to the my main server folder getting rid of the /public/ string, so that was the last piece I was missing. Thanks!
firedrawndagger
CC BY-SA 3.0
2015-01-26T02:28:11.917Z
2015-01-26T02:28:11.917Z
Brad Bell
<p>I was having this issue and got it fixed by doing the following</p>

<p>Note: I am using Ubuntu</p>

<ol>
<li>Assume <code>apache2</code> is installed</li>
<li>Run <code>sudo a2enmod rewrite</code></li>
<li>Ensure <code>Options FollowSymLinks SymLinksIfOwnerMatch</code> is within your virtualhost <code>&lt;directory&gt;</code> config</li>
<li>Run <code>sudo service apache2 restart</code></li>
</ol>

<p>Hope this helps!</p>

CC BY-SA 3.0
2016-05-31T10:45:44.970Z
2016-05-31T18:49:43.343Z
2016-05-31T18:49:43.343Z
David Yew
<p>Seems like I can't get the base install URL to work. To get Craft to show posts I have to format the URL as,</p>

<pre><code>/public/index.php?p=news/2015/we-just-installed-craft
</code></pre>

<p>Instead of just the <code>/news/2015/we-just-installed-craft</code></p>

<p>I think the <code>.htaccess</code> is getting read because after putting in garbage the server did error out when I used the /public/ URL but not sure what else I'm doing wrong or how I could troubleshoot this.</p>

<url>
URL Redirect Not Working
# URL Redirect Not Working

(Asked by: username_0 on 2015-01-26)

Seems like I can't get the base install URL to work. To get Craft to show posts I have to format the URL as,
/public/index.php?p=news/2015/we-just-installed-craft

Instead of just the /news/2015/we-just-installed-craft
I think the .htaccess is getting read because after putting in garbage the server did error out when I used the /public/ URL but not sure what else I'm doing wrong or how I could troubleshoot this.

**Tags:** url


---

## 2 answers

### Answer by username_1 on 2015-01-26. Score: 3 | Accepted answer

Try setting ['usePathInfo' => true](http://buildwithcraft.com/docs/config-settings#usePathInfo) and ['omitScriptNameInUrls' => true](http://buildwithcraft.com/docs/config-settings#omitScriptNameInUrls) in your `craft/config/general.php` file.

> **Comments:**
> **username_0**: Got it, that worked. I moved the public files out to the my main server folder getting rid of the /public/ string, so that was the last piece I was missing. Thanks!  

---

### Answer by username_2 on 2016-05-31. Score: 1

I was having this issue and got it fixed by doing the following

Note: I am using Ubuntu

1. Assume `apache2` is installed
2. Run `sudo a2enmod rewrite`
3. Ensure `Options FollowSymLinks SymLinksIfOwnerMatch` is within your virtualhost  config
4. Run `sudo service apache2 restart`

Hope this helps!


---

