Redirect
is supposed to redirect all URLs starting with the string. Since the URL you redirect to started with that string, naturally you instantly redirected again.
RedirectMatch
redirects URLs that match a regular expression. You used $
to explicitly match the end of the URL as part of that. That means that “starting with” is not enough.
Related Posts:
- Getting a 500 Internal Server Error on Laravel 5+ Ubuntu 14.04
- How to remove index.php from WordPress site URL
- How do I make a redirect in PHP?
- How to avoid Request Entity Too Large 413 error
- http://localhost:80 is not working on running Apache server through UniServer ZeroXIII
- How do I resolve a HTTP 414 “Request URI too long” error?
- Getting an error when I visit http://localhost
- What is the difference between the ‘www’ folder and ‘htdocs’ folder?
- What is Options +FollowSymLinks?
- SSL error SSL3_GET_SERVER_CERTIFICATE:certificate verify failed
- MAMP “Apache couldn’t be started because port is in use.” AND “Can’t connect to local MySQL server through /tmp/mysql.sock
- Only variable references should be returned by reference – Codeigniter
- Connection reset by peer: mod_fcgid: error reading data from FastCGI server
- file_get_contents( ) not working
- XAMPP, using port:81, cannot run localhost:81/mywebsite
- “End of script output before headers” in Apache + PHP
- How can I force users to access my page over HTTPS instead of HTTP?
- Using PHP 7 with WAMP
- Redirect old php link to wordpress link in .htaccess
- Redirect old php link to wordpress link in .htaccess
- Cant login to wp-admin (redirecting to homepage), But CAN login to wp-login.php
- Cant login to wp-admin (redirecting to homepage), But CAN login to wp-login.php
- WordPress multisite causing Error 101 (net::ERR_CONNECTION_RESET): Unknown error [duplicate]
- Apache Fallback instead of add_rewrite_rule
- how to combine wordpress htaccess on my root domain + php on subfolder
- Rewrite /keyword1+keyword2.html to search page | .htaccess
- How to set 777 permission on a particular folder? [closed]
- regex match any whitespace
- PHP page redirect
- xajax expanding list query
- Data source name not found, and no default driver specified
- Warning: mysqli_fetch_array() expects parameter 1 to be mysqli_result, object given in
- How do I redirect a page in jQuery?
- Illegal string offset Warning PHP
- What’s the purpose of ini_set() in php? (especially for error reporting)
- Send email with PHP from html form on submit with the same script
- HTML Element Array, name=”something[]” or name=”something”?
- Why use $_SERVER[‘PHP_SELF’] instead of “”
- Setting up a PHP interpreter in PhpStorm
- Could not open input file: artisan
- Why php tag is not working in html file?
- What’s the use of ob_start() in php?
- PHP: variables in strings without concatenation
- PHP mail not working for some reason
- How to create cron job using PHP?
- Imploding an associative array in PHP
- curl POST format for CURLOPT_POSTFIELDS
- Can’t use method return value in write context
- PHP get domain name
- How to solve “Fatal error: Class ‘MySQLi’ not found”?
- Running a Python script from PHP
- Object of class DateTime could not be converted to string
- HTTP Error 411, The request must be chunked or have a content length
- mysqli::query(): Couldn’t fetch mysqli
- NotFoundHttpException in RouteCollection.php line 161: in laravel 5
- Easy way to password-protect php page
- Html encode in PHP
- file_put_contents: Failed to open stream, no such file or directory
- PHP $_POST not working?
- PHP cURL HTTP PUT
- Convert timestamp to readable date/time PHP
- PHP sessions that have already been started
- Contact Form 7 – Custom Validation
- How to output JavaScript with PHP
- Check if URL has certain string with PHP
- Subtracting days, months or years from date using php
- Laravel – Model Class not found
- Fatal error: Call to a member function fetch_assoc() on a non-object
- Strict Standards: Only variables should be assigned by reference PHP 5.4
- mysqlworkbench giving version error on exporting database
- Steam Market API?
- PHP array delete by value (not key)
- PHP mail: Multiple recipients?
- PHP Multiple Checkbox Array
- Session variables not working php
- Get JSON object from URL
- How to push both value and key into PHP array
- Find the last element of an array while using a foreach loop in PHP
- Popup window in PHP?
- WordPress- url for localhost wp-admin is not working
- How to run multiple Async HTTP requests in WordPress?
- Which ways can be used to log in to WordPress?
- How do I test to ensure that my wp-config file is protected?
- .htaccess Security Header Rules
- mod_rewrite loop, redirecting http to https on certain section of wordpress blog
- .htaccess in subdir gets ignored by WordPress’ own .htaccess in /
- WordPress admin dashboard missing icons
- custom url rewrite for wordpress
- admin-ajax.php warning max input vars exceeded on layered pop plugins [closed]
- How do I do a redirect to WordPress permalink with post id via htaccess?
- How does WP work in conjunction with a web server?
- Troll the hackers by redirecting them
- WordPress permalinks confusion
- Plugin error after installation
- Deny php execution in /wp-includes – using .htaccess in /wp-includes VS root folder
- How to move wordpress website from hosting account to localhost
- What to do after a wrong RewriteRule?
- W3 Total Cache Can’t Really Detect Things
- Blog only showing code