Try the following
Open config.php and do following replaces
$config['index_page'] = "index.php"
to
$config['index_page'] = ""
In some cases the default setting for uri_protocol
does not work properly. Just replace
$config['uri_protocol'] ="AUTO"
by
$config['uri_protocol'] = "REQUEST_URI"
.htaccess
RewriteEngine on RewriteCond $1 !^(index\.php|resources|robots\.txt) RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php/$1 [L,QSA]
Note: .htaccess code vary depending on hosting server. In some hosting server (e.g.: Godaddy) need to use an extra ? in the last line of above code. The following line will be replaced with last line in applicable case:
// Replace last .htaccess line with this line RewriteRule ^(.*)$ index.php?/$1 [L,QSA]
Related Posts:
- Change PHP version on server using either .htaccess or php.ini
- Only variable references should be returned by reference – Codeigniter
- How to prevent the “Confirm Form Resubmission” dialog?
- What is a slug?
- How to avoid Request Entity Too Large 413 error
- How to remove .html from URL?
- How to remove .html from URL?
- PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP
- Redirect vs RedirectMatch
- Access-Control-Allow-Origin Multiple Origin Domains?
- What does __FILE__ mean?
- wordpress image upload error and htaccess rule explanation
- Mixed Content Page: requested an insecure stylesheet error
- .htaccess Remove WWW from URL + Directories
- Fatal Error: Allowed Memory Size of 134217728 Bytes Exhausted (CodeIgniter + XML-RPC)
- .htaccess deny from all
- Server unable to read htaccess file, denying access to be safe
- CodeIgniter: Unable to connect to your database server using the provided settings Error Message
- Getting a 500 Internal Server Error on Laravel 5+ Ubuntu 14.04
- Redirect non-www to www in .htaccess
- How to remove index.php from WordPress site URL
- Generic htaccess redirect www to non-www
- Object of class stdClass could not be converted to string
- Using Errordocument 401 leads to blank page
- Redirect old php link to wordpress link in .htaccess
- Redirect old php link to wordpress link in .htaccess
- Double slashes on WordPress Admin URL redirects to wp-login
- 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- url for localhost wp-admin is not working
- WordPress- url for localhost wp-admin is not working
- How to create custom 401, 403 and 500 error pages?
- PHP – redirect https to http and www to non-www
- Bypass .htaccess when using download_url
- Which ways can be used to log in to WordPress?
- How can I run a .php file located in my site’s root folder?
- Fix 403 error on WordPress multisite network using subdomains
- How to redirect all 404 in a WordPress subdirectory to the index.php of subdirectory?
- WordPress multisite causing Error 101 (net::ERR_CONNECTION_RESET): Unknown error [duplicate]
- How to run multiple websites from single WordPress setup
- Using PHP in a Stylesheet (possibly a “.htaccess” problem?)
- How to override .htaccess with new rules without ftp or edit it manual
- WordPress-site can be reached on x.x.x.x/index.php – but not directly on the IP without index.php
- Change the actual (or viewable) WordPress directory structure
- Add htaccess rules with insert_with_markers at beginning of htaccess
- Write to / remove from default .htaccess file from plugin?
- Cannot get media type from ‘x-mapp-php5’
- How to rewrite URL with PHP variables with htaccess to a normal looking URL?
- How to change home or site url using action hooks or filter?
- Apache Fallback instead of add_rewrite_rule
- 3 blogs same installation, without WP MU
- Two Different Links for Same Product – WooCommerce [closed]
- Was told to change the .htacess file form .html to .php so this would work properly
- How to change redirection route to a php page for making it only accessible by logged-in members?
- how to combine wordpress htaccess on my root domain + php on subfolder
- subdirectory index.php is not working
- custom url rewrite for wordpress
- admin-ajax.php warning max input vars exceeded on layered pop plugins [closed]
- Loading index.php contents which located outside blog folder for post single page
- WP & Server Speed [Teacher Question]
- Redirect to another page using contact form 7? [closed]
- WordPress add_rewrite_rules for custom URLs ending in .html
- Troll the hackers by redirecting them
- Seo Friendly Filter URLs
- How to allow download url redirection only if user logged in WordPress site?
- How to disable all logins except Network login in WordPress Multi site?
- Removing files programmatically
- Is it possible to restrict files from your wordpress uploads (not logged-in users or guest)?
- Simple seo-friendly custom $_GET url rewrite with htaccess
- How to make Subdomain work for product_tag?
- How do I properly redirect requests to WordPress subdirectory?
- How to serve WordPress folder over subdomain?
- Add a parameter at the end of the url and prettify
- Pages from admin dasboard missing after site migration
- Rewrite rule not working, but only when parameter is text
- Internal Server Errors – Moving working multi-site install to my localhost
- How To Use htaccess to Rewrite Link Structure for a Page that is Generated Programatcially
- WP Migrate DB Pro plugin cannot transfer Media files to remote server
- Deny php execution in /wp-includes – using .htaccess in /wp-includes VS root folder
- How come there is no error if I upgrade WordPress core after locking .htaccess permissions to 644?
- How to block access to a folder inside of wp-content for non logged in users?
- WordPress Redirect / Add_Rewrite_Rule – Non Index.php Page
- .htaccess file doesn’t work, with hundred tries
- How to change query string with pretty URL in WordPress using .htaccess file
- Upload images from one server to an other in wordpress
- Problem with ajax request and directory structure after site migration
- How can I add “.html” to the end of a single URL on a WordPress website?
- Resource 404 error on multisite subdirectory install
- redirect 301 with special character like WIX site “#!”
- 301 redirect from webpage to wordpress page in the same root
- Rewrite /keyword1+keyword2.html to search page | .htaccess
- Redirect homepage /page/1/ to /blog/page/1/
- Enabling XSendFile causes 404 for images on WordPress Multisite / Network
- 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
- How to use multiple 404 Error Pages in WordPress
- Allow direct access to files/folders within WordPress to replace wp-admin
- Increase Upload Size with htaccess | MAMP
- Remove/unset options field from backend Settings->General?
- Error with Image Slide plug-in/ s3slider in WP