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
- NGINX rewrite rules for WordPress Subdirectory Multisite to support deep URL
- Replace ' and similar html codes with their correspondent character?
- Google Calendar API event update always return 404 “not found” error
- How to prevent the “Confirm Form Resubmission” dialog?
- navigate back with PHP form submission
- How to set 777 permission on a particular folder? [closed]
- How do I make a redirect in PHP?
- List of All Locales and Their Short Codes?
- Difference between “as $key => $value” and “as $value” in PHP foreach
- How do I get a YouTube video thumbnail from the YouTube API?
- What is a slug?
- Visual list of all installed fonts with respective pangram phrase?
- How to log in to phpMyAdmin with WAMP, what is the username and password?
- Array to String PHP?
- Should I use mysqli_real_escape string() or mysql_real_escape_string() for form data?
- count() parameter must be an array or an object that implements countable in laravel
- regex match any whitespace
- What’s the net::ERR_HTTP2_PROTOCOL_ERROR about?
- How to fix “Headers already sent” error in PHP
- currently unable to handle this request HTTP ERROR 500
- PHP page redirect
- Whoops, looks like something went wrong. Laravel 5.0
- PHP “or” Syntax
- Fatal error: Call to undefined function mysql_connect()
- How to fix “Headers already sent” error in PHP
- “Notice: Undefined variable”, “Notice: Undefined index”, and “Notice: Undefined offset” using PHP
- What are namespaces?
- Get the full URL in PHP
- PDOException SQLSTATE[HY000] [2002] No such file or directory
- PDOException SQLSTATE[HY000] [2002] No such file or directory
- Mysql query- How to use contains?
- How can I use an .htaccess file in Nginx?
- How do I get PHP errors to display?
- S_SESSION variable (user role) not recognised
- .htaccess redirect http to https
- What are the main differences between PHPExcel and PhpSpreadsheet?
- Is SAJAX dead? What to replace with?
- Redirect homepage /page/1/ to /blog/page/1/
- Not logged in when using http
- W3 Total Cache Can’t Really Detect Things
- Admin-area broken through weird issues
- Blog only showing code
- Enabling XSendFile causes 404 for images on WordPress Multisite / Network
- How can I set up a completely separate (not multisite) WordPress installation as a subdirectory of an existing WordPress blog?
- Why I can download any file except PHP files from a URL but I can download any from another site?
- 3 domains, 1 wordpress install, redirecting and changing domains on live site
- Can’t get pretty permalinks to work without index.php
- WordPress Memory limit not increasing
- Having an HTTP error 500 after migrating a website
- Can I redirect the http request towards an old folder to the homepage using .htaccess file? [closed]
- session_start(): Cannot find save handler ‘mm’ – session startup failed in /sites
- how to put shortcode to the top of the page – theme 2014
- How to avoid timeout waiting for output from CGI script?
- How can I prevent wordpress from sending emails
- True or False: Is an Apache error or PHP error the same as a WordPress error?
- How to use multiple 404 Error Pages in WordPress
- WordPress redirection
- Allow direct access to files/folders within WordPress to replace wp-admin
- Increase Upload Size with htaccess | MAMP
- How To Add CSP frame ancestors in WordPress Website? [closed]
- Subfolder install not working
- WP-Include rewrite directory
- Browser Caching .htaccess
- Restricting access to a file for everyone except logged in users
- Hardening WordPress – how to set .htaccess permissions?
- wp-login – unable to redirect user to a custom login url
- Change WordPress Multisite Domain to subfolder
- All Pages and Post are redirecting to 404 Not Found in wordpress
- Updating post_parent caused the website to become unresponsive for 40 seconds or more
- How to do SEO friendly filters urls?
- 404 Error after URL update
- Avoid duplicate content on pretty URLs with htaccess
- How to add global CSS to all webpages without installing any plugin?