WordPress.org

Support

Support » How-To and Troubleshooting » Strange Redirection Issue

Strange Redirection Issue

  • I’m recreating a website using WordPress, but I’m having a strange issue with redirection of a couple of pages.

    I’m not very far in, so my apologies for it being ugly, but you can see the issue here. If you click on “About” or “Events” in the top bar under the banner, you get redirected to sites on the old website. “About” takes you here, while “Events” takes you here. I have no idea why it’s happening, since none of the other pages are redirecting.

    My apologies if this is a common issue, but I found nothing similar to this problem when I searched these forums. Please let me know if there is anything else I need to provide you guys to help me figure this out.

    Thank you!

Viewing 6 replies - 1 through 6 (of 6 total)
  • please post your .htaccess code here you can find that in root of your site. seems you have reversed your htaccess code.

    Hi Pankaj, here’s my .htaccess.

    ErrorDocument 403 /missing.html
    ErrorDocument 404 /missing.html
    ErrorDocument 500 /missing.html
    RewriteEngine off
    <IfModule mod_suphp.c>
    	suPHP_ConfigPath /home/uviccss/public_html/php.ini
    	<Files php.ini>
    		order allow,deny
    		deny from all
    	</Files>
    </IfModule>
    RewriteEngine off
    <IfModule mod_suphp.c>
    	suPHP_ConfigPath /home/uviccss/public_html/php.ini
    	<Files php.ini>
    		order allow,deny
    		deny from all
    	</Files>
    </IfModule>
    
    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    
    # END WordPress

    I think it might be the Rewrite engine lines before the WordPress section starts, but I’m not a coder so I wouldn’t know.

    this is all ok. do one thing rename this htaccess to something else. then go to setting then permalink and press save changes it will create a fresh htaccess for you then check site.

    Hm, I created the new htaccess, but the issue still remains.

    I figured out that the issue is with the source code of the http://www.uvic.css/about page. (view-source:http://uviccss.com/about/)

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <html>
    <head>
    <title>UVic CSS</title>
    <meta http-equiv="REFRESH" content="0;url=/main/banquet.php"></head>
    <style type="text/css">
    </style>
    </head>
    <body>
    
    </body>
    </html>

    The thing is, that code isn’t anywhere in the editor I have for that page in my dashboard. I did some searching, and it seems that WordPress stores the page content in the SQL database. Could I find this HTML in there and remove it? I just can’t seem to figure out where that source code actually is.

    do you have a folder name about on website. if you have rename it something else it will solve your problem.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Strange Redirection Issue’ is closed to new replies.
Skip to toolbar