.htaccess for forcetype method giving 500 server error
This is really annoying, I'm sure it's something stupid I've done. If anyone can spot anything I've missed, or just plain overlooked then it would be appreciated. Thanks;
I've just done this site and thought I'd try using the forcetype method to generate more SEF URL's. I wish I hadn't now.
I want it to work when I go to http://durban.directrouter.com/~espressso/ethics/
It should, but doesn't
My htaccess file;
OK, so I found out that my host didn't have mod_rewrite turned on, well, they said they did, but it actually wasn't working. They recompiled Apache and it started working!
I now have the following in my .htaccess file;
The next step is to take any argument passed through the URL (index.php?page=ethics), It would be ?page=ethics in this example.
I want to redirect so it looks like this
I thought the following line would accomplish this;
^ - Start of expression to be matched
(.*) - Wildcard, anything
\ - used to escape the dot before the file extension
.php - the file type I want to match
?page= - This is included in the URL
([a-z]+) - Any character from a to z
+ - any amount of iterations of a-z
$ - end of expression to be matched
/$1/ - redirect to part in square brackets(with slashes before and after)
[R=301] - 301 redirect mode
Anyone see what's wrong? Probably something stupid, I've never done this before, so please be gentle.
|All times are GMT +1. The time now is 02:21 AM.|
Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.