Non Page parametar after / without redirect to 404.php
-
Hi,
Im trying to implement “public profile” page for users who registred on website. Im using “/%postname%” custom permalink structure. So for example public page of profile should be:
https://localhost/username (using localhost as example) (and where username for example = “john”)
My problem is that “username” cannot be page (obviously i cannot make page for every user), and if its not page after slash (or post) it will call 404.php (which is good)
Point is that url structure need to stay the same:
https://localhost/pageone -> will triger page
https://localhost/pagetwo -> will triger page ….
https://localhost/username -> will be parametar (not page) but should workDoes anyone have idea how to deal with this (i already tried with several url rewrites but failed).
P.S. Implementing it like https://localhost/profile/username is really easy (adding one more page and implementing custom template for that page) but that is not what i need here.
Tnx
- The topic ‘Non Page parametar after / without redirect to 404.php’ is closed to new replies.