私のホスティングのpublic htmlフォルダにword pressがインストールされています。私は古いcodeigniterサイトファイルを "oldsite \ codeigniter"に入れました。 example.com/oldsite/codeigniter特定のフォルダへのhtaccessリダイレクト
URLが「含まれている場合、私はサブフォルダにリダイレクトするにはどうすればよいoldsite:しかし、私は常にワードプレス
サンプルURLからページが見つからないエラーを取得して、このコードイグナイタのウェブサイトにアクセスすることができません"またはoldsite/CodeIgniterの
RewriteEngine On
RewriteRule ^oldsite/codeigniter/(.*)$ example.com/oldsite/codeigniter/$1 [NC,R=301,L]
のCodeIgniterのhtaccessファイル
RewriteEngine on
RewriteCond %{REQUEST_URI} !(.gif|.jpg|.png)$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]
RewriteRule codeigniter/home$
example.com/oldsite/codeigniter[L,R=301]
を追加します。 –
はいcodeigniterフォルダにhtaccessファイルがあり、コードは – user936565
です。最初の.htaccessは必要ありません。なぜなら、codeigniter .htaccessがすべてを処理するからです。最後の行だけを削除してください。 –