Permalinks, Subpages and Custom File Names – Help Needed
-
Hi All,
I just had this insane idea, and I’m wondering if it’s possible. I’m building a site using WordPress, and my navigation structure looks something like:
Home (/home)
About (/about)
Process (/process)
What We Do (/whatwedo)
Portfolio (/portfolio)
Contact Us (/contact)Ideally, what I would like to do is this:
Home (/home)
About (/about)
Link 1 (/about/filename1.php)
Link 2 (/about/filename2.php)
Process (/process)
What We Do (/whatwedo)
Portfolio (/portfolio)
Link 1 (/portfolio/filename1.php)
Link 2 (/portfolio/filename2.php)
Contact Us (/contact)I imagine this can be done with .htaccess, however I am not quite familiar with using mod_rewrite (although I did figure out a tricky issue today that involved editing the httpd.conf file on my webserver).
If it helps, I have my own webserver with root access to, so if editing system files is necessary, there won’t be any issues getting access to them.
I’m thinking that using:
RewriteRule ^(about-us/team-members)/?([0-9]+)?/?$ /index.php?pagename=$1&page=$2 [QSA,L]
in my .htaccess would most likely do the trick, however, I could be wrong. I don’t want to add anything that might jeopardize my server (I’ve done that enough for one week! LOL).
Is what I’ve said even remotely possible? If so, I’d like to hear from some of you what you did and if I could get some help.
Thanks,
Justin Kozuch
- The topic ‘Permalinks, Subpages and Custom File Names – Help Needed’ is closed to new replies.