can';t更改url,在php中更改url
我有一个由开发者开发的网站。。我不懂php或html 我想更改我网站的url。当前url类似于: abcd.in/index.php?页面=9 我想将其更改为: abcd.in/free\u分类网站1 我尝试使用.htaccess代码can';t更改url,在php中更改url,php,url,curl,exchange-server,Php,Url,Curl,Exchange Server,我有一个由开发者开发的网站。。我不懂php或html 我想更改我网站的url。当前url类似于: abcd.in/index.php?页面=9 我想将其更改为: abcd.in/free\u分类网站1 我尝试使用.htaccess代码 'IfModule mod_rewrite.c` /Enable Rewrite Engine /RewriteEngine On RewriteBase / /Redirect index.php? Requests /RewriteCond %{THE_REQ
'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]
但仍然是新的url
abcd.in/?第页=1
现在该怎么办
第二个问题是,如果使用.htaccess代码,我无法访问我的子域,在那里我已经对网站进行了分类,但在实现此代码后,我无法看到我的子域的管理页面
就像
classifieds.abcd.in/试试这个
RewriteEngine on
RewriteRule ^free_classified_sites1$ index.php?page=9 [L]
thanx很多人都认为它有效,只有一个问题是“?”url中是否有SITL。在/?free\u classified\u sites=1中,我可以在此论坛/站点中使用我的站点名称吗??允许吗??因为我有很多问题,其中一些你在浏览我的网站后会理解的。你可以通过
domain.com/index.php?page=9
直接访问domain.com/free\u-classified\u-sites1
old url was.in/index.php?page=9现在改为.in/?free\u-classified\u-sites=1//这是我的索引页面代码$offset=($pageNum-1)*$rowsPerPage;//使用分页时我们有多少页?maxPage=ceil($numrows/$rowsPerPage)$self=$\u服务器['PHP\u self']$导航='';对于($page=1;$page if($pageNum>1){$page=$pageNum-1;$prev=“”;$first=“”;}其他{$prev='';$first='';}如果($pageNum<$maxPage){$page=$pageNum+1;$next=“”;$last=“”;}