Mapping page URL to File system Location
Hi there,
I plan to host multiple static html pages using Apache server, serving them out of a directory.
There will be a folder called '/blog' in which multiple static pages will be sitting P4,P3,P2,P1 etc.
How can I map 'example1.com/blog' to latest webpage 'p4' in the directory
to achieve :
example1.com/blog/p4
when a new page is added, assign the new page P5
example1.com/blog/p5
when another new page is added, assign the new page P6
example1.com/blog/p6
48127
and so on..
Thank you in advance.
-
Hello, You might be able to use custom Mod_Rewrite rules for this purpose. Here's a StackOverflow thread you may find helpful: Reference: mod_rewrite, URL rewriting and "pretty links" explained Thank you. 0 -
thanks 0
Please sign in to leave a comment.
Comments
2 comments