我有一个电子商务网站与wordpress,但现在我想重新开发在CodeIgniter。
我在谷歌里有100个索引网址。
这里是url格式,我用CI路线来解释。
我尝试过使用此代码,但当我尝试访问博客文章时,它将重定向到城市页面。
$route['(:any)'] = 'product/city/$1/$2';
public function city($name) {
}
result :
www.store.com/kuala-lumpur
public function category($name, $city) {
}
result :
www.
我有一个支付网关,我想与codeigniter集成。我使用ajax从视图中获取值。我需要重定向到具有一些值的支付网关页面,以便用户可以在支付网关页面中进行进一步的处理。 我的传递值的视图 <script>
$(document).ready(function(){
$(".loader").hide();
$("#connectionForm").on('submit', function(e){
e.preventDefault();
var data = new FormD
我的.htaccess文件中有以下内容:
Options +FollowSymlinks
RewriteEngine On
# Block hidden directories
RewriteRule "(^|/)\." - [F]
# Prevent /health_check.php from using https
RewriteCond %{REQUEST_URI} !(health_check\.php)$
# Prevent /sns from using https but this DOES need
这里我正在创建一个登录系统。一旦验证了用户,控制器将页面重定向到home.php。
这里有2页login_registration.php和home.php
login_registration.php由登录和注册表单组成,用户从这里重定向到home.php。这两个文件都位于路径C:\wamp\www\CI-Project_1\application\views\login中。
问题是它在重定向时显示404 Page Not Found。
class Login extends CI_Controller {
public function __construct(){
大家好。我正在使用codeigniter4,我希望能够存储cookie,然后重定向到另一个页面。如果我设置cookie而不包括重定向过程,Cookie会成功存储,但问题是当我重定向时,cookie不再保存。如何解决并使cookie保存并重定向。 public function loginProcessor()
{
helper(['cookie']);
$checkStatus = true;
if ($checkStatus)
{
set_cookie('nameCookie', 'CookieSo