.htaccess - Htaccess conflict SEO Url friendly -


the code below seems conflict index.php

how go allowing index.php? :) > http://www.domain.com/

options -multiviews rewriteengine on rewritebase /  rewriterule ^(\w+)/?$ live.php?content=$1 [l,qsa,nc] 

note: still want rewrite url /$1

all grateful thank solution.

if have solution without affecting current structure feel free post below.

better add rewritecond avoid rewriting existing files/directories:

directoryindex index.php options -multiviews rewriteengine on rewritebase /  rewritecond %{request_filename} !-d rewritecond %{request_filename} !-f rewriterule ^(\w+)/?$ live.php?content=$1 [l,qsa] 

Comments

Popular posts from this blog

ruby on rails - RuntimeError: Circular dependency detected while autoloading constant - ActiveAdmin.register Role -

c++ - OpenMP unpredictable overhead -

javascript - Wordpress slider, not displayed 100% width -