Technical Forum
Ask questions. Discover Answers.
cancel
Showing results for 
Search instead for 
Did you mean: 

how to use apache htacess in nginx

vinodhkannanaws
Nimbostratus
Nimbostratus

Below is the apache .htaccess content and we are using it in wordpress. i want to use the same for word press with nginx. any one please assist me.    

 

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
RewriteBase /blogswordpress/
RewriteRule ^index\.php$ - [L]
RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L]
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^ - [L]
RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*) $2 [L]
RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L]
RewriteRule . index.php [L]
</IfModule>

2 REPLIES 2

mihaic
MVP
MVP

Leslie_Hubertus
Community Manager
Community Manager

@vinodhkannanaws  - just checking - did you follow @mihaic 's link, and did that help you out, or do you need more assistance?