-
0 votesanswersviews
产品路线需要`app.php`
prod环境中除 \ 之外的所有路径都要求包含 app.php . 使用 app.php 可以使用所有站点功能 . 开发环境的行为与预期一致 . 环境是Ubuntu 12.04(在Win 8 VirtualBox VM上),PHP 5.4,Apache 2.2 . 典型的Apache错误日志条目: [客户端127.0.0.1]文件不存在:/ var / www / volunteer / we... -
0 votesanswersviews
symfony2 app_dev.php route get 404但适用于app.php
我的apache配置和我的几个symfony项目有问题 . Debian版本:7.8 apache版本:2.2.22,mpm_prefork 我的vhost配置: <VirtualHost *:80> DocumentRoot /var/www/test/web ServerName test.xxx.com <Directory /var/www/tes... -
0 votesanswersviews
nginx iphone重写角度应用程序 - 刷新时获得404
我们在移动客户端的nginx上托管了一个角度应用程序 . 所有路由都由角度代码处理 . 因此没有子目录等 . 因此路径作为参数传递给角度文件,即“index_angular.html”,angular负责其余部分 . 坐着工作并通过菜单项导航工作 . 但是一旦我进入菜单项然后刷新页面,它就会返回404错误 . 这是nginx conf: server { listen 80; root /apps... -
2 votesanswersviews
使用EasyPHP在localhost中配置重写URL
我正在尝试配置.htaccess以使用EasyPHP在localhost中设置重写URL,但我得到的只是404错误 . 我的本地网站是C:\ Projects \ Test \,在EasyPHP中我创建了一个新的别名,其中“Test”名称位于此位置 . 因此,要访问此网站,请在浏览器中键入127.0.0.1:8080/test . .htaccess文件在本网站的根目录中解决(C:\ Projec... -
0 votesanswersviews
覆盖默认的wordpress启动
我在root(httpdocs)上安装了wordpress . 当我输入域url wordpress主题加载 . 一切都好,除了现在我想要加载我的旧静态index.html页面,并且我可以使用直接URI访问wordpress ...就像/index.php 我想我需要以某种方式修改.htaccess才能使用它?不知怎的,我在这方面并不成功 . 也许某些东西需要在wordpress中重新配置? 我很... -
1 votesanswersviews
Cakephp3阻止了htaccess到Wordpress博客的路由
这是我面临的情况: 假设这个文件夹结构: cakephp(主站点) wordpress(网站博客) 主要网站是使用CakePHP3(mysite.com)开发的 . 我在他们自己的回购中创建了一个Wordpress博客 . 所以我想用htaccess url重定向像 mysite.com/en/blog 到蛋糕外的另一个文件夹 . 这是cakephp根目录下的htaccess文件,它处... -
0 votesanswersviews
301重定向与异常(在wordpress站点/ htaccess)
我以前在我的域名的根目录下有一个Wordpress博客,永久链接结构总是简单的例子:example.com/name-of-the-blog-post 现在,我已将该博客移至/ blog /文件夹,并将新的Wordpress网站添加到我的域的根目录 . 这个网站现在只有2页:/ about和/ store . 所以我有: - 1个wordpress网站/(仅限2页) - 1个wordpress... -
1 votesanswersviews
将旧域重定向到新子域
我有.htaccess重写规则集的问题 . www.OldDomain.com与Joomla模板正在退休,新网站是一个基于Wordpress的网站,地址为http://newdomain.com/subfolder . 由于某种原因,我得到以下消息:“此网页有一个重定向循环”,但无论我尝试它不起作用 . 新的Wordpress网站有wordpress生成的友好链接 . 我试图上传一个默认的wor... -
1 votesanswersviews
WordPress重定向网址[已关闭]
我的网站www.artlogdigi.com工作正常,但我们发现有些人访问了www.artlogdigi.com/index.html,哪个页面显然不存在并显示404错误页面 . 我们还发现人们访问了contact/index.html,about-us/index.html,其中也显示了404 . 我想知道我的服务器或WordPress是否将访问者重定向到这种URL? BTW!我们正在使用GoD... -
2 votesanswersviews
从CodeIgniter URL中删除index.php
我正在努力删除CodeIgniter URL的'index.php'部分 . 我正在使用CodeIgniter 3.1.2版 . 我已经对其他问题采取了所有步骤: 已将 $config['index_page'] = 'index.php' 更改为 $config['index_page'] = '' 已将 $config['uri_protocol'] = 'AUTO' 更改为 $con... -
1 votesanswersviews
.htaccess将旧的url语法重定向到新的重写规则语法[关闭]
Hello 我希望避免重复链接与重定向所有链接不被.htaccess重写 For example: .htaccess重写规则: RewriteRule ^ watch - ([0-9]) . html $ index.php?page = watch&id = $ 1 [NC,L] Redirect with variable, Something Like : index.php?pag... -
1 votesanswersviews
子文件夹和mod重写
我需要更改当前的重写规则以适应管理员文件夹 . 这是我目前的mod-rewrite代码: RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^([a-z]+?)/([a-z]+?)/(.*)$ index.php?model=$1&view... -
0 votesanswersviews
集成Wordpress和自定义URL重写
我正在使用Wordpress 3.4.1打开永久链接 . 在我的.htaccess中,我有以下代码: <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUES... -
3 votesanswersviews
CodeIgniter和Javascript url-重写冲突
我的项目是在CodeIgniter中设置的 . 为了清理CI的url,我在页面的htaccess中添加了一个RewriteRule,删除了丑陋的'index.php': RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule .* index.php/$0 [PT,L] 此规则重写: ... -
0 votesanswersviews
网址重写不起作用的htaccess
这是我的htaccess代码: RewriteEngine On RewriteRule ^/typo3$ - [L] RewriteRule ^/typo3/.*$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-l Re... -
0 votesanswersviews
.htaccess重写规则,友好的URL重定向
我正在使用.htaccess来获取看起来像这样的网址: /index.php?page=2 并重写它们,例如: /contact-us 我想做两件事: 加载/联系我们时,请显示页面/index.php?page=2但保留友好的URL . 我知道这看起来像: RewriteRule ^contact-us$ "index\.php\?page\=2" [L] 哪个确实有效 ... -
0 votesanswersviews
htaccess重写网址 - 如何在我的代码中编写网址?
使用apache / .htaccess RewriteEngine: 如果我想改变一个网址就好 www.foo.com/mypage.php?var=abc&var2=123 至 www.foo.com/abc/123 我是否需要手动重写我的PHP文件中的URL,还是需要处理? 即,将我的代码<a href="mypage.php?var=abc&var2=123... -
3 votesanswersviews
htaccess重写麻烦
我完全坚持htaccess重写不能在我的服务器上工作 . 它是Codeigniter的一个基本的index.php重写,在我的Mac上进行开发时工作正常但在我的服务器上失败(CentOS,Apache 2,WHM) RewriteEngine on RewriteCond $1 !^(index\.php|images|css|js|robots\.txt) RewriteRule ^(.*)$ ... -
2 votesanswersviews
apache抛出404 - 没有重写规则
这是我遇到的一个问题: 我的virtualhost配置为将不存在的文件重写为/init.php?REQUEST . 例如:www.test.com/module/action会重写为/init.php?module/action . 这是一个很常见的功能,通过以下方式实现: <Directory /path/to/test.com/htdocs/> RewriteEngine... -
1 votesanswersviews
htaccess重定向301 url重写
我们在.htacces中遇到了一个url重写和重定向301 目前我们的Internetsite只有一个文件(index.php)作为变量传递给类别ID,然后显示该类别的内容 . 例如:使用链接www.oursite.com/index.php?CATID=4调用类别Nr 4,该链接显示使用链接www.oursite调用类别Nr 5的类别“map-france”的内容 . com / index.... -
-1 votesanswersviews
url递归重写
我正在尝试使用以下指令从www.xxx.com/test.com重写URL到www.xxx.com/my.php?d=test.com: Options Indexes FollowSymLinks RewriteEngine On RewriteRule ^((.+)\.(.+))$ my.php?d=$1 这不起作用,例如,网址是www.xxx.com/te... -
-1 votesanswersviews
跳过某些特定文件的.htaccess规则
现在我使用以下.htaccess规则来修改我的网址 . 我的网站包含更多图像和类似文件 . 我发现.htaccess规则增加了网站的加载时间 . 我希望跳过一些代码来执行domain.com/images和domain .com / scripts文件夹 . 选项FollowSymLinksRewriteEngine OnRewriteRule ^([0-9])/([0-9])/([^.]) . ... -
1 votesanswersviews
使用Apache RewiteEngine / .htaccess后无法显示图像
我在这里有一个问题: 在我的服务器上,有: http://www.domain.com/folder1/abc/html/index.html 在index.html中有一些图像或pdf文件的链接: 然后我使用.htaccess使URL更短,它的工作原理: http://www.domain.com/~abc 但是从浏览器中,图像的链接显示: http://www.domain.com/pic.j... -
0 votesanswersviews
在joomla 3.0中使用.htaccess重写url
我需要使用.htaccess重写url . 这是我的网址 index.php/component/mb2portfolio/project/2-cum-sociis 如何在.htaccess中更改为 /skill_pages/2_skill_name.html 注意:我在 .htaccess 中尝试使用 RewriteRule 并且它可以正常工作,但是对于其他默认URL,因为这个脚本,后缀不能正常... -
0 votesanswersviews
PHP Url重写mod-rewrite
(参考http://www.webconfs.com/url-rewriting-tool.php - 使用url http://mywebsite.com/urltest/product.php?categoryid=1&productid=10) 启用Apache模块 - Rewite_Module 我创建了一个页面product.php编写代码,以便 - 它显示内容 - ... -
1 votesanswersviews
重写浏览器位置栏中显示的规则
我有以下重写规则: <IfModule mod_rewrite.c> RewriteEngine on RewriteBase / # Route all URLs to dispatch.php. RewriteCond %{REQUEST_URI} !media/ RewriteRule ^(.*)$ dispatch.php [L] #Route re... -
0 votesanswersviews
使用mod_rewrite重写URL:多个规则出错
我在.htaccess中有以下代码 Options +FollowSymLinks RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-l RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^([^/]+)(/([^/]+))?(... -
0 votesanswersviews
在apache中重写url是行不通的
我在ipage服务器的.htaccess直接编辑器中使用以下代码来更改我的网站页面URL 例如: http://foodinger.in/viewRestaurant.php?raipur=Barbecue-Country&id=3006 至 http://foodinger.in/viewRestaurant/raipur/Barbecue-Country 但它不起作用 Rewrite... -
2 votesanswersviews
重写条件没有被踢 - 基于查询字符串的存在的Apache mod-rewrite -
我有一个要求,如果一个链接有一个特定的querystring参数,那么它应该被拦截并重定向到另一个url我的当前配置看起来像这样 <IfModule rewrite_module> RewriteEngine On RewriteLog /cfp/apps/t/ts/x/logs/mod_rewrite.log RewriteLogLevel 9 RewriteCond %{QUERY... -
0 votesanswersviews
将一个主页重写为404而不是其他主页
我有以下三个重写规则,根据用户的工作情况将用户引导至付款方式: RewriteRule ^/marketing/staff$ https://www.example.com/marketing/payroll/forms/salary-payment-form.shtml?stafftype=EXAMPLE [R,L] RewriteRule ^/marketing/other-staff$ h...