This is probably something really simple...
Here's my .htaccess file:
***
Options -Indexes +FollowSymLinks -MultiViews
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} !^www\.
RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]
Redirect 301 /[login to view URL] [login to view URL]
RewriteRule ^browse/([0-9]+)/?$ [login to view URL]$1
RewriteRule ^search/([_A-Za-z0-9-]+)/([0-9]+)/?$ [login to view URL]$1&page=$2
RewriteCond %{THE_REQUEST} ^([a-zA-Z0-9-]+)\ /([a-zA-Z0-9-]+)\.php\ HTTP/
RewriteRule ^([a-zA-Z0-9-]+)\.php [login to view URL]$1 [L,QSA]
RewriteRule ^([a-zA-Z0-9-]+)/?$ [login to view URL]$1 [L,QSA]
***
Here's what happens if I visit the url I am trying to redirect:
I get a 404 not found and this is the url:
[login to view URL]
There's some interference between my redirect and the rules that handle the site's content.
8 years of experience in Linux server management and cloud systems which includes Installation, Monitoring, and Optimization. I can handle the installation of applications on Linux. I do web hosting support, Website migration, and Automation on server platform.
I am very good in rout management in differnt project, this you can be done in .htaccess or else in server alias. if you are interested, we can disscuss in chat