1
votes

I'm using .htaccess in my public_html folder to redirect my folders to gets:

RewriteCond %{REQUEST_FILENAME} !-f

RewriteRule ^([^/])/?([^/])/?$ index.php?v=$1&t=$2

It is giving me a 404 error though when I type my page:

http://southeast.tv/1/e

But it should redirect to:

http://southeast.tv/index.php?v=1&t=e

2

2 Answers

1
votes
RewriteRule ^([^/]+)(\/)?([^/]+)? index.php?v=$1&t=$3
2
votes

Make sure you have all of these lines:

RewriteEngine on
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^([^/])/?([^/])/?$ index.php?v=$1&t=$2