Simple mod rewrite help, please :) |
[eluser]Boris Strahija[/eluser]
I've never been very good at the whole regular expression thing so I'm asking for help. I think it should be simple for a real expert so here goes. I have a Wordpress installation in a subfolder and the path looks something like this: http://www.mydomain.com/_wp/wp-admin/... I did set it up now that it works from the root, with the WP htaccess file so my URL's look like this: http://www.mydomain.com/contact http://www.mydomain.com/about This all works very well, but I have a 1st level page called Main, and it has a couple of subpages. The URL's look like this: http://www.mydomain.com/main/page1 http://www.mydomain.com/main/page2 ... Now what I need is to edit the htaccess so the this URL's also work like this: http://www.mydomain.com/page1 http://www.mydomain.com/page2 Is this possible? Thanx!
[eluser]GSV Sleeper Service[/eluser]
it is, off the top of my head it'll be something like Code: RewriteRule ^(page[0-9])$ /index.php/main/$1 [L] |
Welcome Guest, Not a member yet? Register Sign In |