Search the Community
Showing results for tags 'rewrite'.
-
Mam/Sir, http://www.firm.tk/ has test/ directory and it's already had an index.htm file. So, you could check it at: www.firm.tk/test/ The things that I've did are, I add a *.firm.tk subdomain and paste this code on the .htaccess file: RewriteEngine on RewriteCond %{HTTP_HOST} !^www\. RewriteCond %{HTTP_HOST} ^([^/.]+)\.firm\.tk$ RewriteRule ^ %1%{REQUEST_URI} [L] And that's all, but why test.firm.tk subdomain doesn't rewriting yet to www.firm.tk/test/ directory? Did I do something wrong? Or a HelioHost Support need to mentioned first to be able that domain to perform a wildcard subdomain? Please help and teach me a little bit to correct what I am doing, if I'm coding wrong, thank you!
-
I have some problems with my .htaccess file. I've tried placing the .htaccess file in my very root and in the folder I actually want it in, but I keep getting a 500 error. Once I delete the file the problem is gone. This is the piece of code I'm using: -- Options +FollowSymlinks RewriteEngine on RewriteRule ^edit/([^/]+)/([^/]+) /edit.php?cat=$1&id=$2 [NC] -- And I've also tried this: -- RewriteEngine on RewriteRule ^edit/([^/]+)/([^/]+) /edit.php?cat=$1&id=$2 [NC] -- Is this just an error in my script, is this functions turned off somehow, or... could anyone help me?