我正在尝试删除php扩展并自定义url它的工作网址但不加载css文件.. 我更改了这个网址:http://localhost/rozgar/jobs.php?search=testing
对此形成:http://localhost/rozgar/jobs/testing
这是我的.htaccess代码。
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^([^\.]+)$ $1.php [NC,L]
RewriteRule ^jobs/([A-Za-z]+) jobs.php?search=$1
的CSS
<link rel="stylesheet" href="../css/bootstrap.min.css">
<link rel="stylesheet" href="../css/font-awesome.min.css">
<!-- MAIN CSS -->
<link rel="stylesheet" href="../css/main.css">
htm code..how当用户点击提交按钮时,如何获取此网址 http://localhost/rozgar/jobs/testing
<form class="form-horizontal" method="get" action="jobs">
<div class="form-group">
<div class="col-sm-12 col-md-8 col-lg-8">
<input type="text" name="search" class="form-control" placeholder="Search By Job, Company, Category...">
</div>
<div class="col-sm-12 col-md-2 col-lg-2" id="padd">
<select id="dropDesign" name="city" class="form-control">
<option value="" selected disabled>Select City</option>
<?php
$query="select * from city";
$rs=mysqli_query($db,$query);
while ($row = mysqli_fetch_array($rs)) {
$city = $row[1];
?>
<option value="<?php echo $city; ?>" name="city"><?php echo $city; ?></option>
<?php
}
?>
</select>
</div>