Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi,
    Can I see your permalink settings?

    AFAIK this can happen due to 2 reasons.

    1. Modified .htaccess file with custom URL redirections
    2. Custom endpoints with redirection hooked to WordPress via functions.php

    Check those two possibilities.
    (Also check whether there are any plugins activated related to URL redirection)

    • This reply was modified 7 years, 7 months ago by dakshinasd.
    Thread Starter Nalin

    (@nalin_duminda)

    @dakshinasd

    here is the Htaccess file.

    RewriteOptions inherit
    
    # BEGIN W3TC Browser Cache
    <IfModule mod_deflate.c>
            AddOutputFilterByType DEFLATE text/css text/x-component application/x-javascript application/javascript text/javascript text/x-js text/html text/richtext image/svg+xml text/plain text/xsd text/xsl text/xml image/bmp application/java application/msword application/vnd.ms-fontobject application/x-msdownload image/x-icon image/webp application/json application/vnd.ms-access application/vnd.ms-project application/x-font-otf application/vnd.ms-opentype application/vnd.oasis.opendocument.database application/vnd.oasis.opendocument.chart application/vnd.oasis.opendocument.formula application/vnd.oasis.opendocument.graphics application/vnd.oasis.opendocument.presentation application/vnd.oasis.opendocument.spreadsheet application/vnd.oasis.opendocument.text audio/ogg application/pdf application/vnd.ms-powerpoint image/svg+xml application/x-shockwave-flash image/tiff application/x-font-ttf application/vnd.ms-opentype audio/wav application/vnd.ms-write application/font-woff application/font-woff2 application/vnd.ms-excel
        <IfModule mod_mime.c>
            # DEFLATE by extension
            AddOutputFilter DEFLATE js css htm html xml
        </IfModule>
    </IfModule>
    <FilesMatch "\.(html|htm|rtf|rtx|svg|txt|xsd|xsl|xml|HTML|HTM|RTF|RTX|SVG|TXT|XSD|XSL|XML)$">
        <IfModule mod_headers.c>
            Header append Vary User-Agent env=!dont-vary
        </IfModule>
    </FilesMatch>
    <FilesMatch "\.(bmp|class|doc|docx|eot|exe|ico|webp|json|mdb|mpp|otf|_otf|odb|odc|odf|odg|odp|ods|odt|ogg|pdf|pot|pps|ppt|pptx|svg|svgz|swf|tif|tiff|ttf|ttc|_ttf|wav|wri|woff|woff2|xla|xls|xlsx|xlt|xlw|BMP|CLASS|DOC|DOCX|EOT|EXE|ICO|WEBP|JSON|MDB|MPP|OTF|_OTF|ODB|ODC|ODF|ODG|ODP|ODS|ODT|OGG|PDF|POT|PPS|PPT|PPTX|SVG|SVGZ|SWF|TIF|TIFF|TTF|TTC|_TTF|WAV|WRI|WOFF|WOFF2|XLA|XLS|XLSX|XLT|XLW)$">
        <IfModule mod_headers.c>
             Header unset Last-Modified
        </IfModule>
    </FilesMatch>
    # END W3TC Browser Cache
    # 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
    RewriteCond %{HTTP_HOST} ^.*$
    RewriteRule ^webmail$ "https\:\/\/mail\.zoho\.com\/portal\/santani" [R=301,L]
    

    No URL redirection plugins.

    Permalink setting : Custom Structure /%category%/%postname%/

    Apparently this is not only common to this particular site, all the word press sites have the same problem.

    That’s strange. I’ve never came across such issue prior to this. Anyway, I think you would be able to redirect the specific URL pattern to home page with proper URL or 404 page.

    Please see below.
    URL Redirection

    PS: What about custom redirection specific codes in function.php?

    • This reply was modified 7 years, 7 months ago by dakshinasd.
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Duplicated URLs for the same page’ is closed to new replies.