Code: Select all
find / -name mod_rewrite.soModerator: General Moderators
Code: Select all
find / -name mod_rewrite.soCode: Select all
RewriteEngine On
RewriteRule ^([A-Za-z0-9]+)/([A-Za-z0-9]+)/([A-Za-z0-9]+)$ /mysite/index.php?city=$1&page=$2&function=$3 [NC]Code: Select all
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^(.*)$ /mysite/test.html [QSA,L]
</IfModule>Code: Select all
<html>
<head>
<title>This is a rewrite test</title>
</head>
<body>
This is a rewriter test.
</body>
</html>Code: Select all
<Directory />
Options FollowSymLinks
AllowOverride All
</Directory>Code: Select all
/
|
/var
|
/www
|
/html
|
/mysiteCode: Select all
/
|
/srv
|
/www
|
/htdocs (this is the server root)
|
/mysite (the root for this site)
.htaccess
test.htm
index.php