Welcome Guest, Not a member yet? Register   Sign In
links not working again!!!1
#1

[eluser]learning_php[/eluser]
Hi,

I posted this a few days ago and i thought that i had fixed the error but it is back againhttp://ellislab.com/forums/viewthread/113474/ The home page opens ok but none of the links work?www.wesayido.co.uk
#2

[eluser]Dam1an[/eluser]
It works if you put the index.php into the URL (although it breaks the css)
Which leads me to beleive it must be something with your htaccess and rewrite rule
#3

[eluser]Evil Wizard[/eluser]
Your links do kind of work, it's to do with the routing of your requests, e.g. /info really is http://www.wesayido.co.uk/index.php?info

so if you added to the bottom of your .htaccess file in the document root
Code:
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php/$1 [L]

this just checks to see that the URL requested does not exist, is not a directory and forward the request to index.php with the trailing query string.

Also remember that filenames and URL's are case sensative but php class and method names are not Wink
#4

[eluser]learning_php[/eluser]
This is my .htaccess file

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

<IfModule !mod_rewrite.c>
  # If we don’t have mod_rewrite installed, all 404’s
  # can be sent to index.php, and everything works as normal.

  ErrorDocument 404 /index.php
</IfModule>




Theme © iAndrew 2016 - Forum software by © MyBB