Hey members webmasterworld.com, pls help me with this modrewrite in .htaccess.
I 'm totally new in this area and need your helping alot.
Here 's my problem:
I'm using FMyScript on Bluehost and there 's a problem with multiviews mode. I have to disable the Multiviews.
I see some help in the forum and adding this to htaccess:
---
# Enable mod_rewrite, disable multiviews
# For security reasons, Option followsymlinks cannot be overridden.
#Options -multiviews
Options -multiviews
# Turn on the rewrite engine
# Rewrite URL-paths not ending with a filetype (".") or trailing slash (in any {sub}directory) to <URL-path>.php
--
And it work with :RewriteRule ^signup$ /signup.php for example.
But there 're still a problem 404 with category, view, and members.
I don't understand why this code above just goes fine with "^signup$ /signup.php" (1 slash) but with 2 slash like "category/(.*)/(.*)" It's still wrong (404).
Pls help me with this! What I have to do now!
-------
my .htaccess right now (not full, just to show where is problem)
------
<IfModule mod_rewrite.c>
# Enable mod_rewrite, disable multiviews
# For security reasons, Option followsymlinks cannot be overridden.
#Options -multiviews
Options -multiviews
# Turn on the rewrite engine
# Rewrite URL-paths not ending with a filetype (".") or trailing slash (in any {sub}directory) to <URL-path>.php
RewriteRule ^(([^/]+/)*([^./]+))$ $1.php [L]
RewriteEngine on
RewriteRule ^signup$ /signup.php
RewriteRule ^view/(.*)/(.*) /view.php?cat=$1&pid=$2
RewriteRule ^category/(.*)/(.*) /category.php?cat=$1&name=$2
RewriteRule ^members/(.*)/(.*) /memberprofile.php?pid=$1&name=$2