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? Quote 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. Quote 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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.