Your htaccess file seems to be a little off.
I would suggest the first part of the file should look like the following…
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /testsite/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /testsite/index.php [L]
</IfModule>
And that you store it in the ‘testsite’ folder not the root.
Related Posts:
- Passing variables through permalink structure
- 301 Redirects for Changed Permalink Structure & Category Base
- How do I turn off 301 redirecting posts (not canonical)?
- Subdomains to pages
- htaccess or redirect to cloak portion of a link?
- Auto 301 to full post permalink? (using /posts/%post_id%/%postname%)
- Using WP rather than .htaccess to redirect pages/posts
- .htaccess – Redirect duplicated post ended in ‘-number/’ to the same url without the -number/
- WordPress redirection problem after moving to a new server?
- Specific URL Rewriting with parameters in wordpress
- If I change permalink structures, can I use htaccess to permanantly redirect links?
- Redirect parent taxonomy to it’s child
- Need Help Correct Regular Expression Redirect Code
- Custom Permalink
- Redirect a Blogger Page URL to wordpress
- Redirecting all posts after changing URL structure with htaccess
- Redirect all posts permalinks from “.html” to “/”
- WordPress 4.4 old permalink redirect
- Htaccess https 301 problem
- Passing the JQuery string to Worldpress URL
- How to use different domains for different blogs hosted in the same host in subdomains with .htaccess
- What causes /pages/ to appear in URI, and how to remove it?
- Some Pemalink problems, probably caused by wrong .htaccess configuration?
- Comment author url link is wrong? How to change from authors/ to author/
- Redirect From Url To Url
- change WordPress permalinks and redirect new urls 301
- Custom permalink structure with %postname% in front of domain name
- Configuring Home Page Address
- WordPress Page Not Found if Permalink Settings is Postname
- Can’t access WordPress site in subfolder possibly because of .htaccess redirect from root installation?
- Removed and Reinstalled WordPress, Redirect Broken now
- redirect old pages by .htaccess
- Why are all pages redirecting to homepage when using custom permalinks?
- .htaccess regex for redirect subdomain to root domain & redirect old permalinks
- 404 posts error after 301 redirection of changed category / tag base
- 301 Redirect posts to newly added categories
- Removing /wp in Permalink URL of subdomain led to inaccessibility to WP Dashboard
- corrupted URLs – can’t leave starting page
- Find all URLs for a post
- How can i fix my permalinks?
- remove SLASH on single_post but KEEP on categories and parent pages
- Link to a page before launch
- where can i see wordpress automatic redirect History
- .htaccess to redirect to a wp page
- How to redirect old permalinks to ones generated by [WP-Hashed-ID] plugin?
- Redirect old /%category%/%postname%/ to just /%postname%/
- Extending page urls without getting a 404
- why wordpress keeps redirecting to old page after deleting it?
- My WP homepage works, but the other pages don’t when accessing from out side of my network
- Got 404 error when changed siteurl via DB in WordPress
- Nested permalink without dummy parent page
- Custom Permalink (with category) for Pages
- All files in public_html, Cannot launch WordPress site via wp-admin
- Cannot publish posts or pages when I change permalink structure
- 301 redirects after changing permalinks
- How to experiment with permalink structure on a select number of posts
- Disable “similar permalink” redirect [duplicate]
- Change permalink structure with post id
- Can I link to content dynamically from a page to a new page?
- Woocommerce product page 404 not found
- redirect any category in URL to the ID and post-name only – hundreds of pages affected
- wordpress admin panel loop on nginx
- Very strange behaviour related to htaccess and custom posts and custom posts substrings (BUG?)
- No Ones Been Able to Override my WordPress Rewrite Rule Issue!
- My permalinks for all pages and posts now include old page titles as parents/categories
- WordPress All pages but home simply read “hello”
- Page returns 404 for specific permalink
- Issue with my links or permalinks
- Post redirected to page with same name but DIFFERENT permalink
- Changed Permalinks settings, how do I redirect posts on Nginx?
- Post permalinks go to the home page
- WordPress Category url redirects to subdomain
- Page permalink redirects to home page
- WordPress pages break with custom permalink settings (theme directory not output)
- Change all pages permalinks instead of hierarchical to have id of the page
- Remove/hide a specify category-name from the url
- redirect 301 with special character like WIX site “#!”
- How to rewrite a folder in WordPress?
- The permalink for the page doesn’t work and page’s defined link throws “Object not found!”
- LetsEncrypt WordPress on the Raspberry Pi – Nice url’s give 404 with https, http works
- On IIS, stop WordPress from resaving my web.config file when I enter the Permalinks config page
- Page permalink ending in “-2”
- Removing or hiding slug/permalink from htaccess
- changing permalink gives 404 error for old links
- Pretty permalinks (again)
- Fresh wordpress installation in sub-directory not accessible
- How to hide slug numbers with htaccess
- Allow arbitrary text after page URL
- Change the permalinks structure
- When using number in url it is redircting to same page but when using character it redirects to 404
- All pages lead to home
- Development before domain name chosen
- Folder Name and Category Name WordPress
- Once redirected by Rewrite rules, how can WordPress know the page?
- Select page/template from the permalink url
- Redirect Pretty Permalinks to Ugly Permalinks
- WordPress permalink still not working (error or not understood?)
- Permalink for pages
- customize urls displayed by previous_post_link and next_post_link
- .htaccess not working in WordPress