Need Redirection Trick in .htaccesss

This is a discussion on Need Redirection Trick in .htaccesss within the Linux Web Servers forums, part of the Web Server and Related Forums category; I need to know how to redirect users when they go to certain URLs that no longer exist, using a ...


Go Back   Usenet Forums > Web Server and Related Forums > Linux Web Servers

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-06-2008
Roberto
 
Posts: n/a
Default Need Redirection Trick in .htaccesss

I need to know how to redirect users when they go to certain URLs that
no longer exist, using a setting in my Apache .htaccess file.

For instance, if I used to have a url like http://site.com/abc/directory.php,
and /abc/directory.php no longer exists on the server, I want to add a
setting in .htaccess such that they redirect to /index.php.

  #2 (permalink)  
Old 04-07-2008
Andreas Prilop
 
Posts: n/a
Default Re: Need Redirection Trick in .htaccesss

On Sun, 6 Apr 2008, Roberto wrote:

> I need to know how to redirect users when they go to certain URLs that
> no longer exist, using a setting in my Apache .htaccess file.


http://httpd.apache.org/docs/1.3/mod/mod_alias.html
http://httpd.apache.org/docs/2.0/mod/mod_alias.html

> For instance, if I used to have a url like http://site.com/abc/directory.php,


You do not mean http://site.com/ , do you?
Please use http://www.example.com/ for examples!

> and /abc/directory.php no longer exists on the server,


Redirect /abc/directory.php http://www.example.com/
 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 06:14 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0