Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

PHP

.htacess URL rewrite working in localhost but not working in live server ... how can i solve ?

Here is the .htacess file codes:

RewriteEngine On

RewriteCond %{REQUEST_URI} ^system.*

RewriteRule ^(.*)$ /index.php/$1 [L]

RewriteCond %{REQUEST_FILENAME} !-f

RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule ^(.*)$ index.php/$1 [L]

3 Answers

Is the live server an apache server, or possibly a nginx server? You may need to ask your hosting provider. Also if it is Apache, as them if your plan allows you to use a htaccess file.

And your host might have rewrites turned off.

In my experience, tech support with the host has actually been very good (JustHost). I would not be afraid to use them if you are like me and don't know all that much about the server side of things.