Problems, need help? Have a tip or advice? Post it here.
5 posts Page 1 of 1
Hello Guys,

After my latest issue (see previous post ;)) i've stumbled upon another problem.

I want the pretty URL's to work on http://webtest.stikzdesigns.com. I've followed the steps in the tutorial described on http://www.couchcms.com/docs/concepts/pretty-urls.html but it just does'nt like me at all!

I've generated the .htaccess script, made a phpinfo.php file to see if the extension is on (but it's not visible in the list, and had some contact with my webhost company.

They told me to add the following line to my .htaccess file : RewriteEngine On and AddHandler x-httpd-php5 .php. Though, the engine was turned on already by, i think, the generate script from Couchcms.

Any idea's about the issue? here's my code for further reference:
Code: Select all
AddHandler x-httpd-php5 .php
Options +Indexes +FollowSymlinks -MultiViews
<IfModule mod_rewrite.c>
RewriteEngine On

#If your website is installed in a subfolder, change the line below to reflect the path to the subfolder.
#e.g. for http://www.example.com/subdomain1/subdomain2/ make it RewriteBase /subdomain1/subdomain2
RewriteBase /

#If you wish to use a custom 404 page, place a file named 404.php in your website's root and uncomment the line below.
#If your website is installed in a subfolder, change the line below to reflect the path to the subfolder.
#e.g. for http://www.example.com/subdomain1/subdomain2/ make it ErrorDocument 404 /subdomain1/subdomain2/404.php
#ErrorDocument 404 /404.php

#If your site begins with 'www', uncomment the following two lines
#RewriteCond %{HTTP_HOST} !^www\.
#RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]


#DO NOT EDIT BELOW THIS

RewriteRule ^index.php$ "" [R=301,L,QSA]

RewriteCond %{REQUEST_FILENAME} -d [OR]
RewriteCond %{REQUEST_FILENAME} -f
RewriteRule . - [L]

#index.php
RewriteRule ^.*?([^\.\/]*)\.html$ ?pname=$1 [L,QSA]
RewriteRule ^([1-2]\d{3})/(?:(0[1-9]|1[0-2])/(?:(0[1-9]|1[0-9]|2[0-9]|3[0-1])/)?)?$ ?d=$1$2$3 [L,QSA]
RewriteRule ^[^\.]*?([^/\.]*)/$ ?fname=$1 [L,QSA]
RewriteRule ^\w[^\.]*?([^/\.]*)$ "$0/" [R=301,L,QSA]
</IfModule>
Hi Jaap,

Would it be possible for you to PM me your site's FTP credentials? I think I'd like to take a closer look at the problem.

Thanks
Hi Jaap,

I had a look at your site and the problem was that the .htaccess file was mistakenly named .htacess (spot the missing 'c')?

Everything seems to be working now after the change.
Please check and confirm.

Thanks
omfg... im so sorry for wasting your time on such a stupid mistake!
Thanks again for your incredible help :)

Regards,

Jaap
It's perfectly all right Jaap. Happens to all of us.
You are always welcome.
5 posts Page 1 of 1