dsjuimtq920056 2017-03-06 09:12
浏览 14

如何在htaccess中重写阿拉伯语网址

How to rewrite arabic url in htaccess. I have create htaccess file it's working perfectly for english url but it is not working for arabic url. Acually i am developing project in two language english and arabic. For seo friendly url i am saving slug, It is running properly but in arabic it is not running

  • 写回答

1条回答 默认 最新

  • douba9776 2017-03-06 09:21
    关注

    u can use :

    RewriteEngine on
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-l
    RewriteRule ^([0-9]+)/([^/]+)/?$ page.php?id=$1 [NC,L]
    

    and change the (page.php?id=$1) to feet your links


    take a look on this : link

    or this : link

    评论

报告相同问题?

悬赏问题

  • ¥15 mmocr的训练错误,结果全为0
  • ¥15 python的qt5界面
  • ¥15 无线电能传输系统MATLAB仿真问题
  • ¥50 如何用脚本实现输入法的热键设置
  • ¥20 我想使用一些网络协议或者部分协议也行,主要想实现类似于traceroute的一定步长内的路由拓扑功能
  • ¥30 深度学习,前后端连接
  • ¥15 孟德尔随机化结果不一致
  • ¥15 apm2.8飞控罗盘bad health,加速度计校准失败
  • ¥15 求解O-S方程的特征值问题给出边界层布拉休斯平行流的中性曲线
  • ¥15 谁有desed数据集呀