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 乌班图ip地址配置及远程SSH
  • ¥15 怎么让点阵屏显示静态爱心,用keiluVision5写出让点阵屏显示静态爱心的代码,越快越好
  • ¥15 PSPICE制作一个加法器
  • ¥15 javaweb项目无法正常跳转
  • ¥15 VMBox虚拟机无法访问
  • ¥15 skd显示找不到头文件
  • ¥15 机器视觉中图片中长度与真实长度的关系
  • ¥15 fastreport table 怎么只让每页的最下面和最顶部有横线
  • ¥15 java 的protected权限 ,问题在注释里
  • ¥15 这个是哪里有问题啊?