Forum Moderators: phranque
Current URLs
example.com/index.php/widgets
Desired URLs
example.com/widgets
I need the index.php/ removed sitewide, every article, with a permanent redirect from one version to the other.
The new host allows .htaccess but the old host never did which is why the index.php is in every URI.
note: The index page does NOT have index.php added, just every single other page.
Thanks for any examples you can provide, I want to get it right first shot.
What happens next depends on where on the server the content will reside in the future.
I assume there is not a folder called /index.php/ but instead you have a rewrite to connect the old URL to some dynamic filepath.
The big question is, are you keeping the physical files in the same place as before and using the same parameters as before?
Once that is all known it then very easy to craft the redirect from old URL to new URL, and the rewrite from new URL to real internal server filepath.
I need a permanent redirect to send people to the NON /index.php containing version of pages.
so basicly it needs to do two things.
#1 - strip the /index.php from all uri's whenever it is asked for and
#2 - be permanent so that search engines update as well.