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. 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 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 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] 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?? 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
Archived
This topic is now archived and is closed to further replies.