12 replies
Help!

I have a word press site that all the URL have sample-page" added to them,

for example...

https://mysite.com/sample-page/mypage

This happened to me a few years ago and I was sure I found the answer on here but searching WF has now lead me to no answer.

Can anyone help?

Thanks
#issue #url #wordpress
Avatar of Unregistered
  • Profile picture of the author Monetize
    You can change this in your WordPress dashboard.

    Go to WordPress.org for detailed instructions or google it.

    There's probably a YouTube about it as well.

    Search for - change WP page url
    Signature
    {{ DiscussionBoard.errors[11675535].message }}
  • Profile picture of the author IdeasThatExcel
    It doesn't let me change it, I cannot get the
    /sample-page
    part of the url to go away.
    Signature
    Excel Help - Excel Expert Available To Assist You!
    {{ DiscussionBoard.errors[11675541].message }}
  • Profile picture of the author Matthew North
    Reset permalinks.
    Disable all plugins and themes to find if those are causing the conflict.
    Replace your htaccess file

    Code:
    # BEGIN WordPress
    
    RewriteEngine On
    RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
    RewriteBase /
    RewriteRule ^index.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    
    # END WordPress
    Signature

    you cant hold no groove if you ain't got no pocket.

    {{ DiscussionBoard.errors[11675543].message }}
  • Profile picture of the author agmccall
    By any chance is there a category named sample page

    just a thought

    al
    Signature

    "Opportunity is missed by most people because it is dressed in overalls and looks like work." Thomas Edison

    {{ DiscussionBoard.errors[11675630].message }}
  • Profile picture of the author abdurrafay
    I think the wordpress dashboard allows you to modify it. You can also youtube about it. I'm sure you'll find a way.
    {{ DiscussionBoard.errors[11675975].message }}
  • Profile picture of the author FaraiMist
    In general setting , there should be an option to set it . Specially if its paid theme
    {{ DiscussionBoard.errors[11676001].message }}
  • Profile picture of the author Deepak Bhandari
    best thing you use SEO plugin in WordPress after that your permalink problam solve.
    {{ DiscussionBoard.errors[11676208].message }}
  • I edit my permalinks through Yoast SEO. In case you haven't given this a try.

    https://yoast.com/help/how-do-i-chan...ink-structure/
    {{ DiscussionBoard.errors[11677392].message }}
  • {{ DiscussionBoard.errors[11677617].message }}
  • Profile picture of the author seoexpertad
    Your all pages have been created as a sub page of the main sample-page

    The solution is simple edit every page individual
    Go
    Page Edit > Page Attributes > Parent > (no parent)

    Done!
    {{ DiscussionBoard.errors[11680136].message }}
  • Profile picture of the author milllan
    If you use NGINX, add directives:

    # !!! WordPress Permalinks
    # !!!

    if (!-e $request_filename) {
    rewrite ^(.*)$ /index.php?q=$1 last;
    }

    # Enable Gzip compression
    gzip on;
    gzip_disable "MSIE [1-6]\\.(?!.*SV1)";
    gzip_proxied any;
    gzip_comp_level 5;
    gzip_types text/plain text/css application/javascript application/x-javascript text/xml application/xml application/xml+rss text/javascript image/x-icon image/bmp image/svg+xml;
    gzip_vary on;

    # Don't compress anything under 256 bytes
    gzip_min_length 256;

    # Compress output of these MIME-types
    gzip_types
    application/atom+xml
    application/javascript
    application/json
    application/rss+xml
    application/vnd.ms-fontobject
    application/x-font-ttf
    application/x-font-opentype
    application/x-font-truetype
    application/x-javascript
    application/x-web-app-manifest+json
    application/xhtml+xml
    application/xml
    font/eot
    font/opentype
    font/otf
    image/svg+xml
    image/x-icon
    image/vnd.microsoft.icon
    text/css
    text/plain
    text/javascript
    text/x-component;

    # Disable gzip for bad browsers
    gzip_disable "MSIE [1-6]\.(?!.*SV1)";

    location ~ ([^/]*)sitemap(.*)\.x(m|s)l$ {
    ## SEOPress
    rewrite ^/sitemaps\.xml$ /index.php?seopress_sitemap=1 last;
    rewrite ^/sitemaps_xsl\.xsl$ /index.php?seopress_sitemap_xsl=1 last;
    rewrite ^/sitemaps/([_0-9a-zA-Z-]+)?\.xml$ /index.php?seopress_cpt=$1 last;
    rewrite ^/sitemaps/([_0-9a-zA-Z-]+)?\.xml$ /index.php?seopress_news=$1 last;
    rewrite ^/sitemaps/([_0-9a-zA-Z-]+)?\.xml$ /index.php?seopress_video=$1 last;
    }

    location ~* .(js|jpg|jpeg|gif|png|css|tgz|gz|rar|bz2|doc|pdf|p pt|tar|wav|bmp|rtf|swf|ico|flv|txt|woff|woff2|svg) $ {
    etag on;
    if_modified_since exact;
    add_header Pragma "public";
    add_header Cache-Control "max-age=31536000, public";
    }

    if (!-e $request_filename) {
    set $test P;
    }
    if ($uri !~ ^/(plesk-stat|webstat|webstat-ssl|ftpstat|anon_ftpstat|awstats-icon|internal-nginx-static-location)) {
    set $test "${test}C";
    }
    if ($test = PC) {
    rewrite ^/(.*)$ /index.php?$1;
    }
    Signature
    NorthPublisher - No1 PLR Digital Marketplace. Over 10,000 PLR Product for Download
    {{ DiscussionBoard.errors[11680163].message }}
  • Profile picture of the author MdFoysal
    You can change this in your WordPress?
    {{ DiscussionBoard.errors[11680173].message }}
Avatar of Unregistered

Trending Topics