You can filter home_url
:
add_filter( 'home_url', 'wpse102523_home_url' );
function wpse102523_home_url( $url ) {
return $url . 'index.php/';
}
Reference: Adam Brown’s Filter Database
Related Posts:
- Getting the Site URL Including the Front Base
- Got 404 error when changed siteurl via DB in WordPress
- Logging in to installation in subdirectory renders broken dashboard (no CSS, broken links)
- Setting a permalink for the home page?
- How to get rid of index.php?
- removing index.php IIS 7.5 webconfig
- Getting links to work the same on development and production
- Multilanguage URLs
- How to show the homepage on a different url, like site.com/blog instead of site.com?
- Why does the ‘Month and Name’ Permalink Format not Work on my new WordPress Site (running on IIS7)?
- How to bulk edit image url in featured image and product description?
- example.com/index.php/%postname is working while /%postname is not working WordPress on IIS6
- IIS 7 Rewrite with parent categories
- Permalinks settings
- WordPress suddenly changed all links to example.com/example.com/
- Permalink opens attachment instead of page
- Permalinks on Windows IIS not working and web.config breaks site – does wordpress not support windows server now, if so how?
- Page redirect to 404 when set Permalink = “Post Name”
- Moving blog and maintaining current permalinks
- IIS7.5 URL rewrite pboblem on index page
- Permalink not changing according to post type
- My permalinks for all pages and posts now include old page titles as parents/categories
- Remove index.php from URL (WP installed in subdirectory)
- Get value from URL with different types of parameters
- Remove index.php from url in permalinks over IIS server (web.config)
- How to change URL of my pages?
- How to make custom page link to root automatically?
- On IIS, stop WordPress from resaving my web.config file when I enter the Permalinks config page
- Permalinks setting raises 500.0 error
- Remove index.php from WP 8.0 install migrated to IIS from Apache (still detecting Apache server)?
- Remove index.php from URL
- permalinks url with woocommerce
- Siteurl code for links
- Permalinks is not working in my wordpress setup
- Stymied by 500.5 error for WordPress on IIS 8 / Windows Server 2012
- How to get permalink and title from post ID?
- Removing leading zeros from custom permalink structure
- Post being redirected to attachment post
- Without index.php in permalinks I get 404 across site
- Changing Permalinks to a Custom Permalink causes a 404 Error [no matter what I do]
- How to assign a Permalink to a Function
- Date archive permalink modification
- How to get this JavaScript working with get_permalink
- Add a css class to a taxonomy permalink
- Change of permalink structure – redirects in htaccess breaks the archive links
- Filter string like a slug
- 404 with post name permalinks
- Should there be a trailing slash in the permalink
- Link to external URL
- Woocommerce Product Attribute Permalink doesn’t work?
- WPML get permalink to the translated post from the original post
- Removing /author/ slug from URL gives 404
- Add custom post type name in term link?
- Can I create permalinks like this: /%post_type%/%postname%/
- Why the “Permalink” option is not showing in the “Settings”? [closed]
- Custom permalink structure: /%custom-taxonomy%/%post-name%/ (without CPT slug)
- get_permalink() is not working after published
- get_permalink returning site home url instead of the url of slug being passed
- WordPress add_rewrite_tag working for Posts, but not working for Pages
- WordPress can generate numeric permalinks, which then 404
- Permalink changes gives me 404 [closed]
- Environment independent way to link to certain pages on frontend
- Using one slug/post-name for multiple pages
- Custom URL rewrites for templates
- Gutenberg output URL to post from attribute with post ID
- Broken wordpress site, non-working links and no access to wp-admin page
- How can I get the list of all pages URLs including their shortlink IDs?
- How to change custom post type, blog post and page permalink by template?
- How to use Specific URLs for some posts
- WordPress Permalink
- How to replace permalinks
- placing the media uploads in a subdirectory
- How to Use metada Value in Url and is it possible? [duplicate]
- Custom child page permalink
- How to allow slash(/) on page url
- Safest way to create a custom permalink
- Parent/Child Categories Permalinks
- How to prevent wordpress from lowering Capitalized letters
- An excluded ‘ghost’ page is crashing my permalink
- Yoast and permalink troubleshooting
- Disable -2 Permalink Addition
- Permalink in relation with the files
- WordPress project redirecting to a blank index.php when i use custom templates
- Custom Permlinks work, regular page permalinks don’t
- How to redirect from old standard wordpress permalink structure to new custom one
- When is a good time to reset permalinks?
- Search and replace post URL’s on page output?
- Two urls for one website
- WordPress Pagination Not Working After Transfer from Localhost
- Accidentally changed the permalink structure
- Keep wordpress from modifying my permalinks
- customize urls displayed by previous_post_link and next_post_link
- Routing ‘fake’ sub sub posts
- Files placed in directory with wordpress 404
- how to make follow?
- Permalinks Won’t Work
- Error: “Sorry, this content could not be embedded” when using the Embed block
- WordPress Permalinks 404 Not Found
- WordPress not remembering old slugs for pages
- make a new structure tag that does some processing