springo Posted January 17, 2010 Share Posted January 17, 2010 Hi, I have made the following .htaccess code to rewrites links from ./whatever to ./index.php?p=whatever RewriteEngine On RewriteCond %{SCRIPT_FILENAME} !-f RewriteCond %{SCRIPT_FILENAME} !-d RewriteRule (.*) index.php?p=$1 [QSA,L] (it's all there is in the .htaccess file) It's working on my computer (on XAMPP) but when I upload it to the server it doesn't. Do you know what could be the problem? Thanks. Quote Link to comment https://forums.phpfreaks.com/topic/188805-mod_rewrite-not-working/ Share on other sites More sharing options...
wildteen88 Posted January 17, 2010 Share Posted January 17, 2010 Does your host allow mod_rewrite or the use of .htaccess files? You'll want to contact with your host about this. Quote Link to comment https://forums.phpfreaks.com/topic/188805-mod_rewrite-not-working/#findComment-996783 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.