Moved a site, problem with pretty URLS
Permalink
OK, I know this topic has been here before. I know this because I think I read every post on it today.
I had developed a site on my server (not a local server, but under a directory on my web host). Time came to move it to it's permanent home today. Everything went smooth and according to the book except for pretty urls not working. Nothing but a 'page not found' error on everything except the home page. I tested the .htaccess rewrite, and it was working on this host (Netfirms).
In the end I modified the .htaccess and changed the line:
RewriteRule ^(.*)$ index.php/$1 [L]
to:
RewriteRule ^(.*)$ index.php/$1 [R,L]
Now the site works, but I get the index.php showing up. I should mention that there are some links that point to directories like /products/ that were hard coded into the template files. They didn't work as-is (although they used to on my server) until I did this.
Anyone have any ideas? I'd like to get rid of the index.php part.
I had developed a site on my server (not a local server, but under a directory on my web host). Time came to move it to it's permanent home today. Everything went smooth and according to the book except for pretty urls not working. Nothing but a 'page not found' error on everything except the home page. I tested the .htaccess rewrite, and it was working on this host (Netfirms).
In the end I modified the .htaccess and changed the line:
RewriteRule ^(.*)$ index.php/$1 [L]
to:
RewriteRule ^(.*)$ index.php/$1 [R,L]
Now the site works, but I get the index.php showing up. I should mention that there are some links that point to directories like /products/ that were hard coded into the template files. They didn't work as-is (although they used to on my server) until I did this.
Anyone have any ideas? I'd like to get rid of the index.php part.
disable pretty urls then re enable them and cache if that doesn't work do it again but delete the .htaccess file or atleast all the rewrite rules