I'd like to pass a URL like:
And whoever gets this URL should be able to open a page and view the page associated with that code.
Need help with the steps and fill some gaps in my understanding of the process.
- I assume I need to create: index.php under dir/
- Somehow I need to retreive the code from the last part of my URL and trun it into a var.
I think once i get the var I can do the rest.
My code will always be an 8 char string.
I think it's also possible with .htaccess rewrite somehow, but not sure if i want to take that route... But if it is a better way to do it with rewrite then perhaps I need to skip my /dir/ in the URL and just do:
and once the URL is clicked use header to pull the page from http://mydomain.com/dir/
A bit foggy on the whole procedure.
Suggestions?