# BEGIN WordPress
<ifModule mod_rewrite.c>
RewriteEngine On
RewriteBase /wordpress
RewriteRule ^index.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . index.php [L]
</ifModule>
# END WordPress
I develop locally so the wordpress folder is under a subdirectory. A folder inside the www.
I saw the wordpress guide about moving the index.php and .htaccess and etc. but I don't want that.
I still want to access the site by appending folder names to the localhost address.
I just want to remove the index.php.
you can easily change the sub directory link in database of wordpress in wp_options table having column name option_name. In optio_name there is two rows having name
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.