I have managed to get this script to work, and then I decided to insert the script into the page where it needed to go for the applications, and now it is not work, I have changed all the file path the the correct locations. But nothing.
The error I kept on getting was syntaxerror: unexpected token <
The difference I could see from the script that work and didn't was that I was using a .htaccess file for the URL rewrite, so I removed this and it worked.
So from this I would say that the .htaccess file is causing something to break the path name but I am not sure.
RewriteEngine on
RewriteRule ^([^/\.]+)/?$ index.php?lang=$1 [L]
RewriteRule ^([^/\.]+)/([^/\.]+)/?$ index.php?lang=$1&page=$2 [L]
RewriteRule ^([^/\.]+)/([^/\.]+)/([^/\.]+)/?$ index.php?lang=$1&page=$2&category=$3 [L]
RewriteRule ^([^/\.]+)/([^/\.]+)/([^/\.]+)/([^/\.]+)/?$ index.php?lang=$1&page=$2&category=$3&story=$4 [L]
RewriteCond %{HTTP_HOST} ^website.com$
RewriteRule ^/?$ "http\:\/\/www\.website\.com\/" [R=301,L]
Can anyone see anything that would stop this from working?
Many thanks for having a look for me
Cheers Shuka
RewriteRule ^/?$ http://www.website.com/ [R=301,L]