Welcome Guest, Not a member yet? Register   Sign In
Newbie help with .htaccess problem
#1

[eluser]kingconnections[/eluser]
I am having an issue with a website I got from someone else. I am not very good with CI yet and have not done much with htaccess. I was hoping you guys could help me. The basic problem is that the Symlinks in the htaccess files are not working properly.

This is my htaccess file as of now:

Options +FollowSymLinks
Options -Indexes

RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php?/$1 [L]


Example of the issue is here:


http://www.ussecondhomes.com/agents/details/50

Any ideas or help would be great. Thanks in advance guys!
#2

[eluser]Avatar[/eluser]
luckily I had my htaccess file pulled up from the last time I help a guy with this problem today. This is what my htaccess looks like can we stick this thread I remember reading about htaccess problems like 2 years ago.

Code:
Options -indexes
DirectoryIndex index.php
RewriteEngine On
RewriteBase /demo/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?$1 [L]
basically remove your / after ?
#3

[eluser]kingconnections[/eluser]
HMMM.... no dice. I even copied and pasted it out of yours. It displays, but it is still not picking the id from the url passed to it.


I changed it to this:
Code:
Options +FollowSymLinks
Options -Indexes
DirectoryIndex index.php

RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php?$1 [L]
#4

[eluser]Avatar[/eluser]
that's something with your server configuration I think, do you have control of this server?
#5

[eluser]kingconnections[/eluser]
No, it is a godaddy server. Sad
#6

[eluser]nevercraft[/eluser]
Try:

Options +FollowSymLinks
Options -Indexes
DirectoryIndex index.php

RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ /index.php/$1 [L]

^--- Note the 'php/' instead of 'php?'

If that doesn't work, I'd say its a server configuration issue.
#7

[eluser]kingconnections[/eluser]
When I used the / instead of the ? it gave me a 404 page error.




Theme © iAndrew 2016 - Forum software by © MyBB