Jnerocorp Posted January 22, 2010 Share Posted January 22, 2010 Well i have this in my .htaccess, Options +FollowSymlinks RewriteEngine on RewriteRule ^([^/]*)/?$ /index.php?user=$1 [L] it works but i get a blank page because of some problem i dont know how to fix it if i take out the .htaccess and i write index.php?view=artist&option=com_profile&name=username it works. basicly what i want to do is that the actual route to a file now is, http://www.soundzet.com/artist/index.php?user=freakadilly i want it to be just http://www.soundzet.com/freakadilly please and thank you for the help -John Link to comment https://forums.phpfreaks.com/topic/189380-htaccess-help/ Share on other sites More sharing options...
canadabeeau Posted January 22, 2010 Share Posted January 22, 2010 okay I have my urls like http://yoursite.com/contact instead of http://yoursite.com/?uri=contact or http://yoursite.com/index.php?uri=contact this is my mod_rewrite Options +FollowSymlinks RewriteEngine On RewriteRule ^([a-zA-Z0-9]+)/([a-zA-Z0-9]+)/([a-zA-Z0-9]+)$ /index.php?uri=$1/$2/$3 RewriteRule ^([a-zA-Z0-9]+)/([a-zA-Z0-9]+)$ /index.php?uri=$1/$2 RewriteRule ^([a-zA-Z0-9]+)$ /index.php?uri=$1 because I rewrite from "folders" (the site is DB driven hence "folders") But I am unsure if you can remove "/artist/" completely you may have to settle for "/artist/freakadilly" Link to comment https://forums.phpfreaks.com/topic/189380-htaccess-help/#findComment-999747 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.