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 trialMartin Nørskov Jensen
17,612 PointsMy clean url in .htaccess are working fine on my local server but not on my sites sever
RewriteEngine on
RewriteRule ^kategori/$ /kategori/kategori.php/ [R]
RewriteRule ^kategori/([a-z_-\s]+)/$ /?type=$1
RewriteRule ^kategori/([a-z_-\s]+)/([a-z_-\s]+)/?$ /kategori/produkt.php?type=$1&id=$2
RewriteRule ^kategori/([a-z_-\s]+)/([a-z_-\s]+)/([0-9]+)?$ /kategori/produkt.php?type=$1&id=$2&slags=$3
Andrew Shook
31,709 PointsAllow make sure you have Apache mod_rewrite installed an turned on.
geoffrey
28,736 PointsMartin Nørskov Jensen setting the permissions correctly to that file was the solution !?
1 Answer
Martin Nørskov Jensen
17,612 PointsNo i use one.com and it just worked after some time without me having to do anything
cecil merrell
6,873 Pointscecil merrell
6,873 Pointswhen you upload the file to your live server, make sure the file permissions are set correctly for that file, set it to 755