WordPress.org

Ready to get started?Download WordPress

Forums

Strange Redirection Issue (7 posts)

  1. uviccss
    Member
    Posted 2 years ago #

    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!

  2. Pankaj Pandey
    Member
    Posted 2 years ago #

    please post your .htaccess code here you can find that in root of your site. seems you have reversed your htaccess code.

  3. uviccss
    Member
    Posted 2 years ago #

    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.

  4. Pankaj Pandey
    Member
    Posted 2 years ago #

    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.

  5. uviccss
    Member
    Posted 2 years ago #

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

  6. uviccss
    Member
    Posted 2 years ago #

    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.

  7. Pankaj Pandey
    Member
    Posted 2 years ago #

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

Topic Closed

This topic has been closed to new replies.

About this Topic