How to get ' www.domain.com/my-value' with htaccess? I want to create few pages but my URL should like this below mydomain.com/apple Suppose I am having a page on apple so the URL look like above. Thanks in advance.
Whats the original url index.php?something=apple ? If so something like this should do Options +FollowSymLinks RewriteEngine on RewriteBase / RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule (.[^/]*) /index.php?something=$1 [NC,L] PHP:
Please read through search engines on rewrite rule and htaccess. And you may try the below code. RewriteRule ^(.*)$ http://yourdomain.com/$1