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 可见光定位matlab仿真
  • ¥15 arduino 四自由度机械臂
  • ¥15 wordpress 产品图片 GIF 没法显示
  • ¥15 求三国群英传pl国战时间的修改方法
  • ¥15 matlab代码代写,需写出详细代码,代价私
  • ¥15 ROS系统搭建请教(跨境电商用途)
  • ¥15 AIC3204的示例代码有吗,想用AIC3204测量血氧,找不到相关的代码。
  • ¥20 CST怎么把天线放在座椅环境中并仿真
  • ¥15 任务A:大数据平台搭建(容器环境)怎么做呢?
  • ¥15 YOLOv8obb获取边框坐标时报错AttributeError: 'NoneType' object has no attribute 'xywhr'