18 Jun 2008 at 19:12 #1 malef!c malef!c Associate Joined 27 Jun 2006 Posts 1,473 Hi guys. I am trying to use mod_rewrite so the url: Code: http://domain.com/singleword so it actually goes to: Code: http://domain.com/file.php?singleword Being new to this stuff is this actually possible and any pointers appreciated Cheers M
Hi guys. I am trying to use mod_rewrite so the url: Code: http://domain.com/singleword so it actually goes to: Code: http://domain.com/file.php?singleword Being new to this stuff is this actually possible and any pointers appreciated Cheers M
18 Jun 2008 at 19:24 #2 Inquisitor Inquisitor Soldato Joined 12 Apr 2004 Posts 11,788 Location Somewhere This should do the trick: Code: RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ file.php?$1 [L]
This should do the trick: Code: RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ file.php?$1 [L]
18 Jun 2008 at 19:26 #3 toosepin toosepin Associate Joined 9 Jun 2006 Posts 954 Location Manchester Code: RewriteEngine on RewriteRule ^(.*)$ /file.php?$1
18 Jun 2008 at 19:31 #4 malef!c malef!c Associate OP Joined 27 Jun 2006 Posts 1,473 You sir are a star! MAny thanks