user3466598
user3466598

Reputation: 15

.htaccess redirect is resulting in a 404 how can i fix this

Basically i want my index.php to be College-recruiting-videos so i looked it up on stackoverflow and found this rewrite rule

# Use PHP5.4 as default
AddHandler application/x-httpd-php54 .php

RewriteEngine On 
RewriteRule ^index.php College-recruiting-videos [R=301]

So i put that in my htaccess and saved it but now my index.php 404's why?

http://primetimehighlights.com/college-recruiting-videos

Upvotes: 0

Views: 31

Answers (2)

rajppari
rajppari

Reputation: 54

Try This

Redirect 301 /oldpage.html http://www.example.com/newpage.html

Upvotes: 0

Amit Garg
Amit Garg

Reputation: 3907

I think you want this.

RewriteRule ^College-recruiting-videos$ index.php [L]

Upvotes: 1

Related Questions