Welcome Guest, Not a member yet? Register   Sign In
403 Forbidden for SEO friendly URLS??
#1

[eluser]@li[/eluser]
Hi,

I uploaded my site to a test server that my client provided. The site is working on my localhost, but when I uploaded to the test server and clicked any URLs which should bring up a controller, it gave a '403 Forbidden' error.

E.g if I click http://67.18.x.xxx/~test/login , then instead of bringing up Login controller, it gives the following error:

Quote:Forbidden
You don't have permission to access /index.php/login on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.


--------------------------------------------------------------------------------

Apache/1.3.37 Server at 67.18.x.xxx Port 80

The site is uploaded to public_html folder. Here's the code I've put in the .htacces:

Code:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]
</IfModule>

Any ideas how to fix this? I do have Cpanel access to the server.
#2

[eluser]Jim OHalloran[/eluser]
The first thing I'd check is that the Apache user (usually "apache", "www-data" or "nobody") has read access to your index.php file.

I'd also see if a URL that doesn't rely on mod_rewrite works... e.g. http://67.18.x.xxx/~test/index.php/login

Those couple of things will tell you whether it's a mod_rewrite specific issue or a problem with permissions on your scripts.

Jim.
#3

[eluser]@li[/eluser]
Thanks for the reply. I just told my client about the issue and he got me a new server where everything is working.




Theme © iAndrew 2016 - Forum software by © MyBB