LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 12-31-2010, 03:57 AM   #1
aclhkaclhk
Member
 
Registered: Mar 2009
Posts: 54

Rep: Reputation: 15
which file did the permanent redirection (301)?


i have a bit complex installation:

debian 504
ispconfig 3.0.3
joomla 1.5.22

my website is eg.
www.abc.com

when i access a wrong page ,eg, www.abc.com/zyx, it is redirected to another domain (eg. www.123.com).

ispconfig and joomla do not support that type of redirection. i do not know which files are modified. below is apache log

abc.com:80 192.168.1.2 - - [31/Dec/2010:17:25:10 +0800] "GET /zyx HTTP/1.1" 301 20 "-" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.13) Gecko/20101206 Ubuntu/10.04 (lucid) Firefox/3.6.13"
abc.com:80 192.168.1.2 - - [31/Dec/2010:17:25:10 +0800] "GET / HTTP/1.1" 200 6091 "-" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.13) Gecko/20101206 Ubuntu/10.04 (lucid) Firefox/3.6.13"
abc.com:80 192.168.1.2 - - [31/Dec/2010:17:25:10 +0800] "GET /modules/mod_fpss/tmpl/Default/css/template_css.php?w=705&h=265&sw=150 HTTP/1.1" 200 4602 "http://www.123.com/" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.13) Gecko/20101206 Ubuntu/10.04 (lucid) Firefox/3.6.13"

i have checked .htaccess, apache2.conf, etc. Actually, sometime ago, i have added a URL redirection for 404 error code but i forgot which file.

pls advise could we increase the loglevel for apache to trace which file did the redirection?

Last edited by aclhkaclhk; 12-31-2010 at 04:01 AM.
 
Old 12-31-2010, 04:59 AM   #2
piyushmap
LQ Newbie
 
Registered: Aug 2007
Distribution: RedHat/Fedora/CentOS/Ubuntu
Posts: 22
Blog Entries: 1

Rep: Reputation: 1
Hi,

The redirection handle by mod_rewrite module that is apache module. So may be you have configured this redirection in your .htaccess file or your vhost file that you will be find under apache/conf.d/ directory.

And also check, if your apache.conf file is having correct entry or you have changed it. You will find below value in your apache.conf file. Please verify it.

AccessFileName .htaccess


may be this will help u.

Thanks,
Piyush
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
trouble with file redirection in bash jaziniho Programming 2 05-08-2009 09:22 AM
File Descriptors during I/O Redirection joseamuniz Programming 2 02-27-2008 04:54 PM
Making permanent changed in /etc/network/interfaces file nlarsensmith Linux - Networking 1 01-20-2008 04:52 PM
Ubuntu Edgy where is the config file where xset variables can be set as permanent? jim0112 Ubuntu 2 10-01-2007 01:27 PM
KDE Realplayer permanent file association? jcabral3 Linux - Newbie 1 05-29-2003 07:24 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 02:14 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration