简体   繁体   中英

WordPress mod_rewrite to remove index.php shows blank page

# 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

  • siteurl
  • home

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