Posted by sketchydot, 02-11-2010, 09:31 PM | Hi all,
I am desperately struggling, ive been trying for weeks to get my site, running on wordpress to be able to get clean urls.
I have a dedicated apache CentOS server.
now ive set the permalink structure as i want but it gives me the error
"If your .htaccess file were writable, we could do this automatically, but it isnt so these are the mod_rewrite rules you should have in your .htaccess file."
it tells me to add this..
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
done that, doesnt work!
My httpd.conf HAS mod_rewrite enabled i just cant figure out what to do!
can anyone help?
greatly apprciated
|
Posted by Doh004, 02-11-2010, 10:53 PM | You have to change your permissions on your .htaccess file in your wordpress installation. You can do this in the shell, or in your FTP program. Just CHMOD it to 777.
|
Posted by Dr:linux, 02-12-2010, 03:23 AM | Are you getting any error messages. Please check the Apache error logs for troubleshooting. If you are getting any error logs please paste it.
|
Posted by HivelocityDD, 02-12-2010, 04:05 AM | In your .htaccess file add this lines
|
Posted by SlavaT, 02-12-2010, 04:49 AM | Try to change
RewriteRule . /index.php [L]
to
RewriteRule ^$ index.php
|
Posted by sketchydot, 02-12-2010, 07:36 AM | WOW thank doh004 that worked perfectly!
now, my server is returning two errors, not sure if they are connected but the log file is showing up these...
[client ::1] Directory index forbidden by Options directive: /var/www/html/
and
postdrop: warning: unable to look up public/pickup: No such file or directory
and
[client 222.236.47.185] File does not exist: /var/www/html/phpmyadmin
Any ideas?
thanks again guys,you saved my sanity!
|
Posted by SlavaT, 02-12-2010, 08:00 AM | Check the permissions of /var/www/html/ directory. Also check files and subdirectories of this directory.
|
Posted by DashV, 02-15-2010, 01:00 AM | First, never chmod your files 777 unless you *really* need everyone to write to them
Second, make sure that your VHost or Apache configuration has: AllowOverride with a value like "all" or "AccessFileName" to have Apache pickup your .htaccess file.
|
|
Add to Favourites
Print this Article |