Thursday, 15 September 2011

.htaccess - Show index page for all links to folder -



.htaccess - Show index page for all links to folder -

i have folder named "keywords" website, such this: http://www.mysite.com/keywords/

in folder have index.php file. regardless of types in after folder, need index.php show. example, http://www.mysite.com/keywords/this-is-a-test should show index.php file's content without changing url.

everything i've tried seems fail - i'm working .htaccess in /keywords/ folder. regardless of set there seem maintain getting 404 error. help appreciated, i'm sure it's little , simple don't know how do.

this have:

rewriteengine on rewriterule - index.php [l]

the problem work when going links dash in them.

for example,

http://www.mysite.com/keywords/testing-this

does work. not work:

http://www.mysite.com/keywords/testingthis

any help appreciated.

rewriteengine on rewritebase / #make sure website located in root directory, if not have add together directory here... rewriterule ^keywords/testingthis$ /keywords/index.php$1 [l]

.htaccess

No comments:

Post a Comment