6 Years
Discussion Span
Last Post by vaultdweller123

That's because you need to do something else (I'm pretty sure)..

For example, the code that you have WILL remove .php from the url's (www.abc.com/article.php -> /article) but, because you are requesting variables (using $_GET) you need to provide something else.

The .htaccess works by taking the url: /article/1/2 and just redirects it to: /article?id=1&page_no=2.. for example..

Let me give you an example: http://net.tutsplus.com/tutorials/other/using-htaccess-files-for-pretty-urls/

Hope this helps you =)


try this, name this .htaccess and put it to root

Options +FollowSymLinks
Options +Indexes
RewriteEngine On
RewriteBase /

RewriteRule ^article/(.+)/([0-9]+)$ article.php?product=$1&side=$2

btw this code only works for that certain pattern article.php/watever/watever, because im also a newbie on htaccess im just still reading right now on the basic parts, maybe the conditional statements in htaccess RewriteCond can do the trick, but i haven't read that part yet :D

Edited by vaultdweller123: n/a

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.