用户URL的问题 - htaccess

时间:2014-03-18 15:39:10

标签: .htaccess mod-rewrite prestashop

这是因为当我使用preatashop时出现错误,我收到404错误,我不可能看到错误。

托管上的

错误在这里:

[Tue Mar 18 16:29:31.837809 2014] [:error] [pid 381031] [client 188.181.88.9:42136] 
SoftException in Application.cpp:601: Directory "/home/jesperbo/public_html/shop-bo.dk/modules" is writeable by group, referer: http://www.shop-bo.dk/index.php
[Tue Mar 18 16:23:45.421181 2014] [:error] [pid 375394] [client 183.81.54.21:40210] SoftException in Application.cpp:601: Directory "/home/jesperbo/public_html/shop-bo.dk/modules" is writeable by group, referer: http://www.shop-bo.dk/admin123/index.php?controller=AdminModules&token=52745cf84f136fef00d2738ad3be8887&configure=blockadvfooter&tab_module=others&module_name=blockadvfooter
[Tue Mar 18 16:22:34.397894 2014] [:error] [pid 373007] [client 183.81.54.21:39642] SoftException in Application.cpp:601: Directory "/home/jesperbo/public_html/shop-bo.dk/modules" is writeable by group, referer: http://www.shop-bo.dk/admin123/index.php?controller=AdminModules&token=52745cf84f136fef00d2738ad3be8887&configure=blockadvfooter&tab_module=others&module_name=blockadvfooter
[Tue Mar 18 16:20:13.975016 2014] [:error] [pid 368791] [client 188.181.88.9:38718] SoftException in Application.cpp:601: Directory "/home/jesperbo/public_html/shop-bo.dk/modules" is writeable by group, referer: http://www.shop-bo.dk/admin123/index.php?controller=AdminModules&token=c743f4f33c0588a21fa3880e5772bf6c&configure=blockadvfooter&tab_module=others&module_name=blockadvfooter
[Tue Mar 18 16:19:35.680863 2014] [:error] [pid 368791] [client 183.81.54.21:38415] SoftException in Application.cpp:601: Directory "/home/jesperbo/public_html/shop-bo.dk/modules" is writeable by group, referer: http://www.shop-bo.dk/index.php
[Tue Mar 18 16:19:32.283604 2014] [:error] [pid 367335] [client 183.81.54.21:38408] SoftException in Application.cpp:601: Directory "/home/jesperbo/public_html/shop-bo.dk/modules" is writeable by group
[Tue Mar 18 16:18:58.956017 2014] [:error] [pid 371329] [client 183.81.54.21:38290] SoftException in Application.cpp:601: Directory "/home/jesperbo/public_html/shop-bo.dk/modules" is writeable by group, referer: http://www.shop-bo.dk/admin123/index.php?controller=AdminModules&token=52745cf84f136fef00d2738ad3be8887&configure=blockadvfooter&tab_module=others&module_name=blockadvfooter
[Tue Mar 18 16:18:54.456715 2014] [:error] [pid 369337] [client 188.181.88.9:38293] SoftException in Application.cpp:601: Directory "/home/jesperbo/public_html/shop-bo.dk/modules" is writeable by group, referer: http://www.shop-bo.dk/index.php
[Tue Mar 18 16:18:33.148207 2014] [:error] [pid 369336] [client 183.81.54.21:38191] SoftException in Application.cpp:601: Directory "/home/jesperbo/public_html/shop-bo.dk/modules" is writeable by group, referer: http://www.shop-bo.dk/index.php
[Tue Mar 18 16:18:24.373591 2014] [:error] [pid 359359] [client 183.81.54.21:38139] SoftException in Application.cpp:601: Directory "/home/jesperbo/public_html/shop-bo.dk/modules" is writeable by group, referer: http://www.shop-bo.dk/index.php
[Tue Mar 18 16:18:18.820409 2014] [:error] [pid 368791] [client 183.81.54.21:38121] SoftException in Application.cpp:601: Directory "/home/jesperbo/public_html/shop-bo.dk/modules" is writeable by group
[Tue Mar 18 16:17:52.208217 2014] [:error] [pid 369336] [client 183.81.54.21:37992] SoftException in Application.cpp:601: Directory "/home/jesperbo/public_html/shop-bo.dk/modules" is writeable by group, referer: http://www.shop-bo.dk/index.php
[Tue Mar 18 16:17:45.449577 2014] [:error] [pid 368791] [client 183.81.54.21:37955] SoftException in Application.cpp:601: Directory "/home/jesperbo/public_html/shop-bo.dk/modules" is writeable by group
[Tue Mar 18 16:17:32.821418 2014] [:error] [pid 369336] [client 183.81.54.21:37852] SoftException in Application.cpp:601: Directory "/home/jesperbo/public_html/shop-bo.dk/modules" is writeable by group
[Tue Mar 18 16:16:23.042423 2014] [:error] [pid 367335] [client 183.81.54.21:37511] SoftException in Application.cpp:601: Directory "/home/jesperbo/public_html/shop-bo.dk/modules" is writeable by group
[Tue Mar 18 16:15:57.751759 2014] [:error] [pid 367335] [client 183.81.54.21:37445] SoftException in Application.cpp:601: Directory "/home/jesperbo/public_html/shop-bo.dk/modules" is writeable by group
[Tue Mar 18 16:15:49.707305 2014] [:error] [pid 361467] [client 188.181.88.9:37419] SoftException in Application.cpp:601: Directory "/home/jesperbo/public_html/shop-bo.dk/modules" is writeable by group
[Tue Mar 18 16:15:38.862260 2014] [:error] [pid 369137] [client 183.81.54.21:37391] SoftException in Application.cpp:601: Directory "/home/jesperbo/public_html/shop-bo.dk/modules" is writeable by group

我已设置为用户友好的网址 - htacces

我的.htaccess在这里:

# ~~start~~ Do not remove this comment, Prestashop will keep automatically the code outside this comment when .htaccess will be generated again
# .htaccess automaticaly generated by PrestaShop e-commerce open-source solution
# http://www.prestashop.com - http://www.prestashop.com/forums

<IfModule mod_rewrite.c>
SetEnv HTTP_MOD_REWRITE On
RewriteEngine on
RewriteCond %{HTTP_HOST} ^demo4leotheme.com$
RewriteRule . - [E=REWRITEBASE:/prestashop/leo_mobile/]
RewriteRule ^api/?(.*)$ %{ENV:REWRITEBASE}webservice/dispatcher.php?url=$1 [QSA,L]

# AlphaImageLoader for IE and fancybox
RewriteCond %{HTTP_HOST} ^demo4leotheme.com$
RewriteRule ^images_ie/?([^/]+)\.(jpe?g|png|gif)$ js/jquery/plugins/fancybox/images/$1.$2 [L]
</IfModule>

#If rewrite mod isn't enabled
ErrorDocument 404 /prestashop/leo_mobile/index.php?controller=404

# ~~end~~ Do not remove this comment, Prestashop will keep automatically the code outside this comment when .htaccess will be generated again

1 个答案:

答案 0 :(得分:0)

您的error.log显示了重要内容:

Directory "/home/jesperbo/public_html/shop-bo.dk/modules" is writeable by group

使用此chmod命令更改您的权限来修复此错误:

chmod g-w /home/jesperbo/public_html/shop-bo.dk/modules