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 ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
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. |
|
|||
|
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 | |
|
|