Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Rewriting URLs to make them friendly
This is half-bug and half-feature, so let's start with the problem that prompted this topic:
Problem:
If I link to a file in a Folder A, then add a new folder that comes before Folder A alphabetically, the "directory ID" (did as FB calls it) increments to accommodate this new directory.
Solution:
Although it would be hard to keep a persistent state on the did's, it's necessary in one form or another. One way would be to use .htaccess RewriteRules to redirect, say, /index.php/foldername/photoname to the appropriate file.
Thoughts? Any way to do this easily that I'm not thinking of?
Problem:
If I link to a file in a Folder A, then add a new folder that comes before Folder A alphabetically, the "directory ID" (did as FB calls it) increments to accommodate this new directory.
Solution:
Although it would be hard to keep a persistent state on the did's, it's necessary in one form or another. One way would be to use .htaccess RewriteRules to redirect, say, /index.php/foldername/photoname to the appropriate file.
Thoughts? Any way to do this easily that I'm not thinking of?
0
This discussion has been closed.
Comments