简体   繁体   中英

changing the rewrite rule to subfolder

How do I get this code to point to a subfolder.

RewriteRule ^(.*)$ /index.php?/$1 [L]

previously it was www.sitename.com but now it's www.mysite.com/sitename.com

Not quite sure what do you mean.

If the index.php was moved, you can change the rule like this:

RewriteRule ^(.*)$ /sitename.com/index.php?/$1 [L]

Or you can move the .htaccess file to the subfolder (or you can create a new .htaccess file there).

More on htaccess: http://www.javascriptkit.com/howto/htaccess.shtml

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM