crackpanda Posted November 26, 2011 Share Posted November 26, 2011 Hey, thank you for taking time to read this and for possibly helping me sort this. So I'm trying to make it so: http://mysite.com/thing/key is rewritten as: http://mysite.com/thing.php?k=key while keeping a general rule for: http://mysite.com/thing being written to: http://mysite.com/thing.php Please help thank you. Quote Link to comment https://forums.phpfreaks.com/topic/251863-htaccess-for-dynamic-php-links/ Share on other sites More sharing options...
dreamwest Posted November 27, 2011 Share Posted November 27, 2011 You mean you want http://mysite.com/thing.php => http://mysite.com/thing Quote Link to comment https://forums.phpfreaks.com/topic/251863-htaccess-for-dynamic-php-links/#findComment-1291430 Share on other sites More sharing options...
crackpanda Posted November 27, 2011 Author Share Posted November 27, 2011 Like this: http://mysite/thing => http://mysite/thing.php & http://mysite/thing/key => http://mysite/thing.php?k=key Quote Link to comment https://forums.phpfreaks.com/topic/251863-htaccess-for-dynamic-php-links/#findComment-1291432 Share on other sites More sharing options...
dreamwest Posted November 27, 2011 Share Posted November 27, 2011 RewriteRule ^thing thing.php [L,QSA] RewriteRule ^thing/(.*) thing.php?k=$1 [L,QSA] Quote Link to comment https://forums.phpfreaks.com/topic/251863-htaccess-for-dynamic-php-links/#findComment-1291445 Share on other sites More sharing options...
The Letter E Posted November 27, 2011 Share Posted November 27, 2011 Is mod_rewrite installed on your server and enabled?? Quote Link to comment https://forums.phpfreaks.com/topic/251863-htaccess-for-dynamic-php-links/#findComment-1291449 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.