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 the redirect after changing a page’s slug
- Page begins with number, WordPress adds 2
- Permalinks to Custom does not work (out of box)
- URL rewrite based on a custom field value
- Permalink Issues by Installing WordPress in Subdirectory / Subfolder
- How to map permalinks with accented letters to sanitized slugs?
- WordPress overrides the GET variables, (page_id) set in HTACCESS
- Changing URL from /%postname%/%post_id to /%category%/%postname%/%post_id%
- Should I use relative or absolute urls when pointing to internal pages
- removed index.php now all pages 404
- How to change the permalink structure of a master page?
- WordPress on VirtualBox – no pretty permalinks
- Does WordPress send a 301 header message when you change permalink structures?
- WP Site in subdirectory Joomla! Site – Permalinks not working
- Rewrite my default post URL
- Redirect Loop to Page, Can’t Find Origin, Can’t Remove [closed]
- Permalinks: Page Not Found
- How to protect htaccess so it can’t be overwritten?
- Post incorrectly displaying as page
- wp_logout_url redirects to incorrect page because of pagination
- Changed permalink structure. Need help with redirecting old posts
- Permalinks by page/post name returning 404
- Plain permalinks not working!
- 301 Redirects Result in 404 for WordPress Search Query Strings
- After updating to 4.8 permalinks will not work (all 404)
- Only default permalink is working mod_rewrite enabled
- Changing the post date without causing 404 error
- How to get post object on blog template
- How do I add /blog/ as a prefix to permalink structure for posts, categories & tags?
- Is it possible for a custom post type and sub pages of a page with the same slug as the custom post type to share a slug?
- How to redirect a page to another?
- WordPress url ingore permalinks setting [closed]
- URL rewriting: removing the site’s basename for a specific category
- Let me choose permalinks
- Path to Pages Resolves to Archive instead of Actual Content
- Changing permalink name redirects to another template?
- Resolve 404 on posts without category
- url rewrite .htaccess extension to permalink
- Permalink of a page that has already been deleted
- Media/attachment urls don’t redirect with fake URL structure
- “-2” Being added to end of URL (no duplicate pages, no pages in trash)
- Folder wordpress page redirect
- How to rewrite a page url
- Get a link to paged() part?
- How Can I Use a Custom AccessFileName?
- xammp server permalink by postname not working
- Redirect after permalink changes
- Custom permalink structure only saves with index.php inserted
- Blogger To WordPress Permalink Redirection
- Auto Changing Text Case
- Permalinks and page store
- How can i fix my permalinks?
- remove SLASH on single_post but KEEP on categories and parent pages
- Link to a page before launch
- How to redirect old permalinks to ones generated by [WP-Hashed-ID] plugin?
- Got 404 error when changed siteurl via DB in WordPress
- All files in public_html, Cannot launch WordPress site via wp-admin
- Disable “similar permalink” redirect [duplicate]
- Page permalink redirects to home page
- Removing or hiding slug/permalink from htaccess
- How to hide slug numbers with htaccess
- Allow arbitrary text after page URL
- Once redirected by Rewrite rules, how can WordPress know the page?
- Redirect Pretty Permalinks to Ugly Permalinks