(02-25-2023, 01:00 AM)SubrataJ Wrote: (02-25-2023, 12:47 AM)luckmoshy Wrote: use this
Code:
RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteCond %{THE_REQUEST} /wordpres/folder/([^\s?]*) [NC]
RewriteRule ^ %1 [L,NE,R=302]
RewriteRule ^((?!wordpres/folder/).*)$ wordpres/folder/$1 [L,NC]
is it for CI or WordPress?
This is for the folder where you want to point so this .htaccess help you find your folder where you want to..eg wordpress/folder/
because I don't know how you figure out your app basically you put in a root in WordPress to point your subfolder
so wrdpress/folder/ these are two directors it is you to decide either WordPress or plus folder =wordpress/folder/ change as you wish so just modify to use from WordPress to yours folder
for example here you can hide a public folder in CI4 by using this in a CI root
Code:
RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteCond %{THE_REQUEST} /public/([^\s?]*) [NC]
RewriteRule ^ %1 [L,NE,R=302]
RewriteRule ^((?!public/).*)$ public/$1 [L,NC]
[/quote]
Codeigniter First, Codeigniter Then You!!
yekrinaDigitals