extrovertive Posted April 21, 2010 Share Posted April 21, 2010 Ok, so I got domain.com/index.php?tab=apple domain.com/index.php?tab=orange domain.com/index.php?tab=pear But I want my URL to display domain.com/apple, domain.com/orange, etc instead...can anyone help? Link to comment https://forums.phpfreaks.com/topic/199302-mod-rewrite-help-for-url/ Share on other sites More sharing options...
premiso Posted April 21, 2010 Share Posted April 21, 2010 http://www.yourhtmlsource.com/sitemanagement/urlrewriting.html You want to look into Apache's mod_rewrite to do what you want. Something like this may work, but untested: RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*) index.php?tab=$1 [L] This is a very basic usage, untested but should give you an idea of what you may need. Link to comment https://forums.phpfreaks.com/topic/199302-mod-rewrite-help-for-url/#findComment-1046031 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.