What's wrong in this htaccess

Discuss practical ways rearrange URLs using mod_rewrite.

What's wrong in this htaccess

Postby yalamber » Fri Aug 29, 2008 1:03 pm

Can you tell me what's wrong in this htaccess

Code: Select all
Options +FollowSymLinks

RewriteEngine On

AddType application/x-httpd-php5 .php

php_flag upload_max_filesize 10M


RewriteRule ^blogs/?$ /index.php?do=blogs&type=browse [QSA,L]
RewriteRule ^blogs/([0-9]+)\.html$ /index.php?do=blogs&type=blog&id=$1 [QSA,L]
RewriteRule ^forum/?$ /index.php?do=forum&type=index [QSA,L]
RewriteRule ^forum/([0-9]+)\.html$ /index.php?do=forum&type=topic&id=$1 [QSA,L]
RewriteRule ^video/?$ /index.php?do=video&type=browse [QSA,L]
RewriteRule ^video/([0-9]+)\.html$ /index.php?do=videos&type=index&id=$1 [QSA,L]
RewriteRule ^gallery/?$ /index.php?do=photos&type=browse [QSA,L]
RewriteRule ^gallery/([0-9]+)\.html$ /index.php?do=photos&type=index&id=$1 [QSA,L]
yalamber
 
Posts: 15
Joined: Fri Sep 07, 2007 12:52 am
Location: biratnagar

Postby richardk » Fri Aug 29, 2008 2:36 pm

What problem are you having?

A guess: replace
Code: Select all
Options +FollowSymLinks

with
Code: Select all
Options +FollowSymLinks -MultiViews
richardk
 
Posts: 8800
Joined: Wed Dec 21, 2005 7:50 am

worked you are the hero richardk

Postby yalamber » Sat Aug 30, 2008 8:48 am

man thanks a ton. it did worked. thanks a ton
yalamber
 
Posts: 15
Joined: Fri Sep 07, 2007 12:52 am
Location: biratnagar


Return to Friendly URLs with Mod_Rewrite

Who is online

Users browsing this forum: No registered users and 68 guests

cron