Forum Moderators: phranque

Message Too Old, No Replies

Word Press + .htaccess problems

Wordpress, .htaccess + permalinks

         

jim_knopf

8:01 pm on Dec 10, 2007 (gmt 0)

10+ Year Member



Hi all,

in an earlier post I got my server to work with mod_rewrite /.htaccess thanks to gergoe.
(http://www.webmasterworld.com/apache/3520404.htm)

Now I'm facing the next challenge. i got myself the no-hotlink plugin for wordpress and also like to change to the "nice URL" by changing the permalink in Customize Permalink Structure from "Default" to "Date and name based" - Wordpress ask to update the .htaccess to this:

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTP_REFERER}!^$
RewriteCond %{HTTP_REFERER}!http://www.123456.com
RewriteRule (wp-content/uploads.*\.(gif¦jpg¦jpeg¦png)$) [123456.com...] [L]
RewriteBase /
RewriteCond %{REQUEST_FILENAME}!-f
RewriteCond %{REQUEST_FILENAME}!-d
RewriteRule . /index.php [L]
</IfModule>

Gives me 403 error

Server Error log says:

[Mon Dec 10 21:26:34 2007] [error] [client #*$!.#*$!.xx.#*$!] Options FollowSymLinks or SymLinksIfOwnerMatch is off which implies that RewriteRule directive is forbidden: /srv/www/htdocs/webxx/html/, referer: [123456.com...]

[Mon Dec 10 21:26:35 2007] [error] [client #*$!.#*$!.xx.#*$!] Options FollowSymLinks or SymLinksIfOwnerMatch is off which implies that RewriteRule directive is forbidden: /srv/www/htdocs/webxx/html/favicon.ico

Any advise / pointers on that?

Greetings from La Paz

phranque

9:04 pm on Dec 10, 2007 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



you might try this:

Options +FollowSymlinks
RewriteEngine On
...

gergoe

9:25 pm on Dec 10, 2007 (gmt 0)

10+ Year Member



Indeed, when defining rewriting rules, the directory must have the FollowSymlinks enabled, so each .htaccess file should contain the
Options +FollowSymlinks
, unless it is not defined somewhere in the server config already.

jim_knopf

12:20 am on Dec 11, 2007 (gmt 0)

10+ Year Member



Bingo... - you guy's are amazing to me ;-)

I'll be back with 2 more questions in .htaccess regards as soon as biz allows me.

Thanks a lot....