Windows Hosting – Remove index.php from URL
-
> We are on Apollo Hosting – Windows with IIS 6
> WordPress on windows by default appends an index.php in URL link.
> We do not want index.php in our links so in Permalink settings on WordPress we changed it to Custom Permalink option and removed /index.
> To handle this with coding, we wrote the following code in our httpd.ini
RewriteRule ^/blogs/test/wp-admin/?$ /website/blogs/test/wp-admin/index.php [I,L]
RewriteRule ^/blogs/test/([0-9].*) /website/blogs/test/index.php/$1 [I,L]
> After the above code. Posts are working fine and you do not see index.php in URL.
> RSS Feeds / “Previous Page” / tags / Pages do not work
> Search resulted in many such links https://www.ads-software.com/support/topic/remove-indexphp-from-permalinks which say about writing an 404 pages or custom 301 or web.config or .htaccess.
> Nothing of the above works on our server. We have IIS 6 where its just httpd.ini and we need help how to handle/fix this in httpd.ini or maybe some other smart trick.
- The topic ‘Windows Hosting – Remove index.php from URL’ is closed to new replies.