Forum Moderators: rogerd & travelin cat

Message Too Old, No Replies

URL options in WordPress?

         

Mark_A

8:49 am on Feb 4, 2020 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



I am considering moving my employers site onto a WP platform and the options for URLs is suddenly interesting.

The current site has pages displaying domain/sometimes-long-filename.php or domain/directory/ or domain/directory/long-filename/ ..

I see there are a number of options in WP, what would you recommend and why?

phranque

9:42 am on Feb 4, 2020 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



if possible and appropriate, try to maintain the current urls, with a bias toward the most valuable.
if you have to change some of them, make sure you properly implement 301 redirects.

in general, i would be a fan of losing the .php urls in favor of extensionless urls.
using 4 characters to proudly announce your technology is a waste of url space.

in general, trailing slash urls should be used for directories or for a "virtual directory" index pages.
if every url looks like a directory, meh...

Mark_A

11:04 am on Feb 4, 2020 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Hi phranque thanks for your post.

I am happy to lose the .php extension.

by extensionless urls do you mean domain.co.uk/directory/pagename ?

phranque

12:38 pm on Feb 4, 2020 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



by extensionless urls do you mean domain.co.uk/directory/pagename ?

yes