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

I've been using Couch for a while and it is working great, I just have a minor problem with prettyurls. I got it working and its all fine, all the blog and clonable templates gives me nice pretty urls. But there is one problem.

Since I've been redesigning a website for a client I didn't want to remove their old website before I finished the new one, therefor I just named my index file index2.php while I was designing and coding.
The problem now is that the url to the index page is

I am guessing that it might fix itself once I rename my index2.php to index.php. The rules I have in my .htaccess file is as follows:
Code: Select all
RewriteRule ^index2$ "$0/" [R=301,L,QSA]
RewriteRule ^index2/$ index2.php [L,QSA]
RewriteRule ^index2/.*?([^\.\/]*)\.html$ index2.php?pname=$1 [L,QSA]
RewriteRule ^index2/([1-2]\d{3})/(?:(0[1-9]|1[0-2])/(?:(0[1-9]|1[0-9]|2[0-9]|3[0-1])/)?)?$ index2.php?d=$1$2$3 [L,QSA]
RewriteRule ^index2/[^\.]*?([^/\.]*)/$ index2.php?fname=$1 [L,QSA]
RewriteRule ^index2/[^\.]*?([^/\.]*)$ "$0/" [R=301,L,QSA]

I'm just wondering because I want to make sure that the website works perfectly when we lunch it, I don't want to link to
That shouldn't be a problem.
Once the index2.php is renamed as index.php, please generate the .htaccess afresh (using gen_htaccess.php). The new rules will treat index.php just as you would expect.
2 posts Page 1 of 1

Who is online

In total there are 19 users online :: 0 registered, 0 hidden and 19 guests
(based on users active over the past 5 minutes)

Users browsing this forum: No registered users and 19 guests