.htaccess don't go to folder if slash on end -


i have site where

site.com/index.php?page=test (include file test.php pages folder index.php)

is replaced site.com/test

goal:

if go site.com/index.php?page=forum/new_enrty

i want ot make url site.com/forum/new-entry

problem:

if open site.com/forum/new-entry directs me forum directory new-entry file directly , not include new-entry index.php

so far got this:

<ifmodule mod_rewrite.c>     rewriteengine on     #rewritebase /cms/     rewritecond %{request_filename} !-f     rewritecond %{request_filename} !-d     rewritecond %{request_filename} !-l     rewriterule ^ index.php [l] </ifmodule> 

replace code this:

options +followsymlinks -multiviews rewriteengine on  rewritecond %{request_filename} !-f rewritecond %{request_filename} !-d rewritecond %{request_filename} !-l rewriterule ^(.+?)/?$ index.php?page=$1 [l,qsa] 

Comments

Popular posts from this blog

ios - UICollectionView Self Sizing Cells with Auto Layout -

node.js - ldapjs - write after end error -

DOM Manipulation in Wordpress (and elsewhere) using php -