起初,我很抱歉地提出这个简单的问题,但我真的不知道如何用我的特殊路径构建规则。用特定路径构建重写规则
我的项目的路径是这样的:
www.example.com/cate/123456/guide/index.html
www.example.com/cate/123456/guide/001.html
www.example.com/cate/123456/guide/002.html
www.example.com/cate/123456/guide/003.html
www.example.com/cate/123456/guide/004.html
...and more
随着123456的类别编号,它会自动改变,但里面的文件结构将是相同的。
现在我有手机版本:
www.example.com/cate/123456/guide/**m_index.html**
www.example.com/cate/123456/guide/m_001.html
www.example.com/cate/123456/guide/m_002.html
www.example.com/cate/123456/guide/m_003.html
www.example.com/cate/123456/guide/m_004.html
...and more
所以我的问题是我如何可以重定向到m _ * HTML时通过手机访问。?
例:
的index.html - > m_index.html 001.html - > m_001.html ...
任何建议?
重定向是一种可能的方法来此,但通常不是一个好一个。而是使用一些路由脚本,它在后台提供所需的标记代码。更清晰的网址,更灵活,更细致的控制。 – arkascha