Any .htaccess and rewrite experts in the house? Need some help.
After moving one of my sites to a new server I cant get images to display. If I remove top part from htaccess file, they show up, but re-write doesn't work. If I add it back, rewrite works but all images are broken. Any idea whats causing it and why my new server doesn't like it?
Here's htaccess contents: Options +FollowSymLinks RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-F RewriteCond %{REQUEST_FILENAME} !-D RewriteRule (.*) index.php [L] Thanks |
Does the new server run 'ngnix' ?
|
Quote:
|
Quote:
HEAD / HTTP/1.0 |
centOS 5.5
|
Quote:
|
Your new host is run by pastersinalot...
|
Quote:
HTTP/1.1 200 OK Date: Mon, 11 Jun 2012 17:10:22 GMT Server: Apache/2 X-Powered-By: PHP/5.2.17 |
Quote:
are you getting any kind of server error? |
Quote:
Quote:
|
Quote:
RewriteRule (.*) index.php [L] to this: RewriteRule . /index.php [L] and see if it works? |
Quote:
|
Quote:
You might need a rewrite base defined. Try this. Code:
Options +FollowSymLinks |
I believe you need this line:
RewriteBase / Like so: Options +FollowSymLinks RewriteEngine on RewriteBase / RewriteCond %{REQUEST_FILENAME} !-F RewriteCond %{REQUEST_FILENAME} !-D edit: - Jesus Christ - beat me to it. |
Quote:
WTF? works once I changed it to lower case. |
Quote:
|
Quote:
Glad you got it working and I could be of (some) assistance :thumbsup |
:1orglaugh
|
Hardly any name calling. 2cents
|
All times are GMT -7. The time now is 02:04 PM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc