skip to Main Content

How to convert htaccess to nginx

I have problems to convert a htaccess file to nginx. Maybe someone can help me. I need the following code converted: Options +FollowSymLinks -MultiViews RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php/$1 [L,QSA] I tried…

VIEW QUESTION

Apache mod_rewrite adding anchor to query string

I'm trying to add an anchor to an URL with a query string. The original URL is https://example.com/foo?query=123 It should redirect to https://example.com/foo?query=123#anchor These are my Rules in the .htaccess file: RewriteCond %{REQUEST_URI} ^/foo$ RewriteCond %{QUERY_STRING} ^query=[a-zA-Z0-9s]*$ RewriteRule (.*) /foo?%{QUERY_STRING}#anchor…

VIEW QUESTION

Htaccess 301 blog redirect url – Apache

I have done 301 redirects on my live site something like from this url https://www.rosterelf.com/support-detail/1424/how-can-i-copy-shifts-from-a-day-to-another to this url https://www.rosterelf.com/support-detail/how-can-i-copy-shifts-from-a-day-to-another and its working fine as per my expectations. Here is my .htaccess code how I made it work. RewriteRule ^(support-detail)/d+/([w-]+)/?$ /$1/$2…

VIEW QUESTION
Back To Top
Search