htaccess doesnt work once uploaded to server |
[eluser]rossmurphy[/eluser]
Hi, I'm getting this error when i navigate to http://www.mysite.com/pgs/home. Quote:The requested URL /index.php/home was not found on this server. But when i navigate to http://www.mysite.com/pgs/index.php/home it works. I know it has something to do with my .htaccess file. It works on my local server. Here is my .htaccess. Code: DirectoryIndex index.php Here is my config file: Code: $config['base_url'] = 'www.mysite.com/pgs'; Anyone know why this wouldn't be working? I have check mod rewrite is on.
[eluser]wowdezign[/eluser]
I used to have the same problem until I found out how to set the "Rewrite base". I don't know if that is what's wrong with your s or not, but I work on a local server and then upload to a production server so on the local one I have something like: Code: RewriteEngine On But then on the production server it changes to something like: Code: RewriteEngine On Hope that helps.
[eluser]rossmurphy[/eluser]
Thanks wowdesignz, it was the RewriteBase /. Had to set it to: Code: RewriteBase /mysite/ Because the site is in a sub folder.
|
Welcome Guest, Not a member yet? Register Sign In |