douyong1974 2013-05-08 09:59
浏览 28
已采纳

无法更改网址,在php中更改网址

I have a site developed by developer.. I don't know php or html,

I want to change url of my site. The current url is like:

abcd.in/index.php?page=9

I want to change it to:

abcd.in/free_classified_sites1

I tried using .htaccess code

'IfModule mod_rewrite.c`
/Enable Rewrite Engine
/RewriteEngine On
RewriteBase /
/Redirect index.php? Requests
/RewriteCond %{THE_REQUEST} ^GET.*index\.php [NC]
/RewriteCond %{THE_REQUEST} !/system/.*
/RewriteRule (.*?)index\.php/*(.*) /$1$2 [R=301,L]
/Standard ExpressionEngine Rewrite
/RewriteCond $1 !\.(css|js|gif|jpe?g|png) [NC]
/RewriteCond %{REQUEST_FILENAME} !-f
/RewriteCond %{REQUEST_FILENAME} !-d
/RewriteRule ^(.*)$ /index.php/$1 [L]

but still new url is like

abcd.in/?page=1

what to do now....

second problem if use .htaccess code , I can't access my sub domain, where I have classified site, but after implementing this code I can't see admin page of my subdomain.

which is like

classifieds.abcd.in/

  • 写回答

1条回答 默认 最新

  • douchao1879 2013-05-08 10:02
    关注

    Try this

    RewriteEngine on
    RewriteRule ^free_classified_sites1$ index.php?page=9 [L]
    
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 Llama如何调用shell或者Python
  • ¥20 谁能帮我挨个解读这个php语言编的代码什么意思?
  • ¥15 win10权限管理,限制普通用户使用删除功能
  • ¥15 minnio内存占用过大,内存没被回收(Windows环境)
  • ¥65 抖音咸鱼付款链接转码支付宝
  • ¥15 ubuntu22.04上安装ursim-3.15.8.106339遇到的问题
  • ¥15 blast算法(相关搜索:数据库)
  • ¥15 请问有人会紧聚焦相关的matlab知识嘛?
  • ¥15 网络通信安全解决方案
  • ¥50 yalmip+Gurobi