我有一个很奇怪的问题:谷歌给我的一些链接在我的网站地图不可访问,并给出了404错误。 不过,我试图打开有问题的网页,它工作正常。 该网站已build成使用codeigniter,这里是一个链接的样本 现在,如果您尝试打开上面的链接,它将正常工作。 但如果你试图curl -I : curl – 我http://widwebway.com/en/solutions HTTP / 1.1 404未find 我已经做了一些路线和重写规则,从URL中排除控制器名称。 换句话说,正确的链接是 curl -I http://widwebway.com/en/widwebway/view/solutions HTTP / 1.1 301永久移动 date:2012年2月29日星期三18:05:01 GMT 服务器:Apache / 2.2.14(Ubuntu) 地点:http://widwebway.com/en/solutions 变化:接受编码 Content-Type:text / html; 字符集= ISO-8859-1 Apache错误日志给出 文件不存在:/ var / www / myweb / en,referer:http://widwebway.com/en/solutions 我的.htaccess是: ErrorDocument 404 /index.php <IfModule mod_rewrite.c> RewriteEngine on RewriteRule ^ar/widwebway/view/([a-z_]{1,50})[/]*$ /ar/$1 […]
我需要在htaccess中设置一个规则的帮助, 每当请求的URL包含关键字love然后redirect到另一个URL或maby显示一个404页面。 澄清更多:如果有人试图访问此URL – > www.domain.com/love或www.domain.com/?love或任何包含爱这个词的url应该被redirect到404页。
我只是不能让Magento在新的服务器上运行。 我完全按照这些说明 ,我试了两种方法。 当我打开网站,它只是给了我Magento 404 "Page not Found"页面。 我在我的nginx错误日志中也没有得到任何错误。 我该如何解决这个问题? 我怎样才能启用一些Magento日志logging,而无需访问pipe理面板? 提前致谢,
我正在设置一个新的Plesk帐户,并想添加一个自定义错误文档,404,指定一个PHP文件的URL。 在另一个使用早期版本的Plesk(如果没有错误的话)的帐户中,下面的方法是可行的,而不是在Plesk 11中。 转到网站和域| 虚拟目录 [pipe理]域 select“错误文档”选项卡 点击All | 点击404 selectUrl作为types input“/Index.php”作为位置 项目清单 请注意,文件位于所选域的根目录中。 收到错误: Error: Wrong URL format. Please enter an absolute URL within the virtual host (site). Location is highlighted 在以前版本的Plesk中,或者至less在其他帐户中,指定“/Index.php”起作用。 如果我使用ASP.Net,我可以修改web.config文件,但是我在这里使用PHP,而不是ASP.Net。 思考?
CentOS 6.4 64位 Apache 2.4.6 PHP-FPM 5.5.4 从根加载的主页罚款http://csillamvilag.com 但所有其他页面返回404(CMS是WordPress)。 我也能够访问和login到WordPress的后端。 除了主页以外的所有WordPress页面都没有工作(全部返回404),例如http://csillamvilag.com/csillamtetovalas/csillamtetovalas-tanfolyamok/ http://csillamvilag.com/viszonteladok/ http://www.csillamvilag.com/forumok/ 没有一个OpenCart页面正在工作(全部返回404) 例如http://www.csillamvilag.com/shop/hu/ 这个问题似乎与URL重写… 如果我们试图直接或通过丑陋的URL访问文件,似乎或多或less ,例如http://csillamvilag.com/shop/index.php?route=product/product&product_id=231 但是,如果我们尝试“漂亮的url”或“SEOurl”,那么它不会, 例如http://www.csillamvilag.com/shop/hu/halvany-lila-strasszko-3mm (这个“漂亮的URL”对应于上面丑陋URL示例的相同页面) 这表示Apache中的URL重写问题。 影响WordPress和/home/shop/.htaccess的影响OpenCart的/home/.htaccess中的重写规则似乎没有问题。 例如WordPress / root .htaccess是: <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^index\.php$ – [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule> Apache以用户apache的身份运行。 所有相关的WordPress和OpenCart文件都由用户apache拥有。 访问日志 127.0.0.1 – – [07 […]
我在nginx服务器上遇到了laravel的路由问题。 它显示了一个“404找不到”的所有路线,除了默认的,非常类似于这个问题: https : //stackoverflow.com/questions/21091405/nginx-configuration-for-laravel-4 解决这个问题的方法: 服务器{ 听80; server_name sub.domain.com; 设置$ root_path'/ srv / www / htdocs / application_name / public'; root $ root_path; index index.php index.html index.htm; try_files $ uri $ uri / @rewrite; 位置@rewrite { 重写^ /(。*)$ /index.php?_url=/$1; } 位置〜\ .php { fastcgi_pass 127.0.0.1:9000; fastcgi_index /index.php; 包括/ etc / nginx / fastcgi_params; fastcgi_split_path_info […]
最近我重新安装了Ubuntu 14.04 LTS,nginx / 1.6.1和php5-fpm的服务器。 当我尝试访问index.html它正在工作,当我尝试访问index.php我得到“404未find”。 我再次检查.conf文件,我无法find问题。 server { listen myip:80; server_name www.example.com; rewrite ^(.*) http:// example.com$1 permanent; } server { listen myip:80; server_name example.com; root /var/www; index index.php index.html index.htm; location / { try_files $uri $uri/ /index.html; } access_log off; error_log /var/www/error.log; rewrite_log on; error_page 403 404 /404.html; error_page 500 502 503 504 /404.html; […]
我用express框架运行一个nodejs服务器。 我正在使用Keymetrics.io来跟踪我的应用程序的状态。 我一直在跟踪500和404错误并将它们发送给Keymetrics,404错误显示了一些我以前从未见过的奇怪的东西,我希望有人能清楚这是什么。 基本上我每隔 2-3分钟就会收到这些url发布请求: / V9vc4AAAA / JU70M / cUPBuAAA / / QLId / 1Mv30AAAA / lPVraBAAA / / V9vc4AAAA / JU70M / cUPBuAAA / / 85V / xCAA / LamkyCA / 3lMmCAAAAAA / / BXiuX /阿姨/ B / BJX / / 3GUYKAAAAAA / 8xjakDAA / LnBQqDA / / 85V / xCAA / LamkyCA […]
我正在使用openshift通过他们在网页上启动的研讨会评估/混淆了jboss的BRMS工具: http://www.jboss.org/products/brms/get-started/#!project=brms 我已经加载到一个openshift帐户,我按照说明创build了一个ruby应用程序。 当我点击来自openshift的链接时,我得到了可怕的404消息。 当我查看openshift上的ruby.log时,我可以看到以下内容。 [Sat May 16 05:08:49 2015] [notice] Apache/2.2.15 (Unix) Phusion_Passenger/3.0.2 1 configured — resuming normal operations [Sat May 16 05:08:51 2015] [error] [client 127.8.64.129] Attempt to serve directory: /var/lib/openshift/55570898e0b8cd993200016f/app-root/runtime/repo/public/ – – – [16/May/2015:05:08:51 -0400] "HEAD / HTTP/1.1" 404 – "-" "-" [Sat May 16 05:08:51 2015] [error] [client 127.8.64.129] Attempt to […]
无论我做什么,我的WordPress网站的工作很好,包括所有永久链接,但我无法访问wp-admin区域。 每当我尝试这样做,我得到一个404错误。 我已经将WordPress安装到自己的目录中,简称为“WordPress”。 这是我的configuration文件: server { listen 443 ssl; server_name my-domain.com; root /home/wp-user/my-domain.com/public; ssl_protocols TLSv1 TLSv1.1 TLSv1.2; index index.html index.htm index.php; charset utf-8; # Deny all attempts to access hidden files such as .htaccess, .htpasswd, .DS_Store (Mac). # Keep logging the requests to parse later (or to pass to firewall utilities such as fail2ban) location […]