skip to Main Content

Apache mod_rewrite rule issue that causes an infinite loop

We must redirect from this URL: https://www.ourdomain.com/event/just-an-event-600922?test=620c3c875ceb1ae584920c04d02bc083 to the same without the query string: https://www.ourdomain.com/event/just-an-event-600922 We've tried with this combination of RewriteCond and RewriteRule: RewriteCond %{QUERY_STRING} ^test=([A-Za-z0-9]+)$ RewriteRule ^event/just-an-event-600922$ https://www.ourdomain.com/event/just-an-event-600922 [L,R=301] But it apparently causes an infinite loop. Any idea…

VIEW QUESTION

Apache – Mod rewrite. B flag doesn't work with spaces. AH10411: Rewritten query string contains control characters or spaces

After apache update, my server started dropping this error in URL queries, containing spaces: AH10411: Rewritten query string contains control characters or spaces URL looks as follows: www.example.com/modulename/searchfuncname/filter,searchstring,quick fox jumps/ .htaccess as follows: <IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f…

VIEW QUESTION

Access URL/filename having space | Apache | htaccess

Root Folder Structure Root .htaccess Options -Indexes Options +FollowSymLinks Options +ExecCGI AddHandler cgi-script .cgi .pl .py RewriteEngine on RewriteRule ^(.*)$ public/$1 [BCTLS] php_value file_uploads 1 php_value memory_limit 1024M php_value post_max_size 1024M php_value upload_max_filesize 1024M Inside "public" folder .htaccess in public…

VIEW QUESTION
Back To Top
Search