hi folks, trying to redirect (301) via cpanel from (ex: /dir/folder/page.html ->>>301 ->>> http://site/dir/page.html ), but not working.
Any ideas welcome. Thanks.
In SEO
Thursday, January 12 2017, 02:11 AM
Share this post:
Responses (5)
  • Accepted Answer

    Saturday, June 10 2017, 06:33 PM - #Permalink
    Hi thanks for the reply.
    here is an example of the url im trying to 301-redirect.

    from:

    http://www.spot98.net/store/materials/4416.html
    to: http://www.spot98.net/store/transfer-materials/flex-vinyl.html

    via c-panel (htaccess etc)

    spot98.net/store/MATERIALS/4416.html


    to

    http://www.spot98.net/store/transfer-materials/flex-vinyl.html


    end result no redirect:
    http://www.spot98.net/store/materials/4416.html



    this is a snip from the htaccess file:



    # php -- BEGIN cPanel-generated handler, do not edit
    # Set the
    RewriteCond %{HTTP_HOST} ^spot98\.net$ [OR]
    RewriteCond %{HTTP_HOST} ^www\.spot98\.net$
    RewriteCond %{REQUEST_URI} !^/[0-9]+\..+\.cpaneldcv$
    RewriteCond %{REQUEST_URI} !^/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$
    RewriteRule ^store\/MATERIALS\/4416\.html$ "http\:\/\/www\.spot98\.net\/store\/transfer\-materials\/flex\-vinyl\.html" [R=301,L]





    Ive tested with chrome and ie browsers.

    All re-directs work from url's NOT within the aratta directory like
    spot98.net/INFO/somepage.html


    any idea of what im doing wrong?

    thanks again.
    The reply is currently minimized Show
  • Accepted Answer

    Saturday, June 10 2017, 01:11 PM - #Permalink
    If you post any real examples, not working, it would be easier for people to spot the mistakes.
    The reply is currently minimized Show
  • Accepted Answer

    Friday, June 09 2017, 02:48 AM - #Permalink
    hi there Enes, and thanks. Ok I have been trying some 301 but no luck. They all land on the ----site+com/INDEX..phpp page.
    note that the arastta is on site.com/store and not on the route. Any idea where i could fix that?
    The reply is currently minimized Show
  • Accepted Answer

    Sunday, January 22 2017, 06:01 PM - #Permalink
    Hi thanks for the reply. Yes I must be missing something. Will try it again and bounce back with result.
    The reply is currently minimized Show
  • Accepted Answer

    Thursday, January 12 2017, 09:19 AM - #Permalink
    I'm not sure why your cPanel redirect doesn't work but you can try to redirect via htaccess file, too. Here is an article about it.

    Regards
    Like
    1
    The reply is currently minimized Show
Your Reply