Hi,

How to rewrite my page www.site.com/category.php?item=mouse to www.site.com/category/mouse using .htaccess
I tried many in google
Please help me
Thanks in advance

Recommended Answers

To start with do you have the following within your .htaccess file:

Options +FollowSymlinks
RewriteEngine On

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^/?(.*)$ /ht_test/index.php?url=$1 [L]
Jump to Post

All 3 Replies

To start with do you have the following within your .htaccess file:

Options +FollowSymlinks
RewriteEngine On

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^/?(.*)$ /ht_test/index.php?url=$1 [L]

Thanks for your reply ... Let me try


Thanks
Rajeesh

To start with do you have the following within your .htaccess file:

Options +FollowSymlinks
RewriteEngine On

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^/?(.*)$ /ht_test/index.php?url=$1 [L]

ok, let me know how you go, dont hesitate if you have more problems to post them here...

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.19 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.