Trending News
Promoted
help with REGEX - Mod_Rewrite "domain.com/directory/file.php" into "domain.com/file"?
I'm looking to rename the url "domain.com/directory/file.php" into "domain.com/file".
(remove directory name and extension)
I'm making my site dynamic with url like these: "domain.com/index.php?something=...." but for some pages I need the requested method above.
please show me the code to do that using mod_rewrite in .htaccess
I've tried something similar to "RewriteRule ^/$ /directory/ [L]" but it produces an "internal error".
2 Answers
Relevance
- Calvin KLv 58 years agoFavorite Answer
You need
RewriteCond blah
and then,
RewriteRule blah
http://www.askapache.com/htaccess/modrewrite-tips-...
- scheffLv 44 years ago
i will experience a contravention drawing close! Chester M? sounds like he's long gone! lol! Any bigger with that button and that's all i could be seeing! that's in simple terms screaming for somebody to push it.
Still have questions? Get your answers by asking now.