0
这可能已被问到某处,但我无法为我找到解决方案。.htaccess只重写选定的网址
我想重写唯一入选的网址,例如
www.example.com/page_1 to www.example.com/page.php?page=page_1
www.example.com/page_2 to www.example.com/page.php?page=page_2
www.example.com/page_3 to www.example.com/page.php?page=page_3
www.example.com/page_3_1 to www.example.com/page.php?page=page_3_1
和其他网址的喜欢www.example.com/page_4,www.example.com/page_5,等它不能做任何事情。
我想要一个模式像解决方案,以便我可以添加其他网址的很容易。
是那些刚刚_simplified examples_('PAGE_1,page_2,page_3'),或者是那些你打算重定向_actual_网址吗? (它是如何构造正则表达式的差异) –
这些是简化的例子,因为我只有几个网址,我想要内部重写到page page.php – agaggi