Forum Discussion
how to use apache htacess in nginx
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>
There was a similar question weeks ago.
Here it is:
https://community.f5.com/t5/technical-forum/htaccess-to-nginx-rules/m-p/305305#M263855
- Leslie_HubertusRet. Employee
vinodhkannanaws - just checking - did you follow mihaic 's link, and did that help you out, or do you need more assistance?
Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com