Trade Republic - Provisionsfrei Aktien handeln
Neuigkeiten
  • Die modified eCommerce Shopsoftware ist kostenlos, aber nicht umsonst.
    Spenden
  • Damit wir die modified eCommerce Shopsoftware auch zukünftig kostenlos anbieten können:
    Spenden
  • Thema: Use SEO on localhost

    blaupunkt

    • Neu im Forum
    • Beiträge: 26
    Use SEO on localhost
    am: 24. Februar 2014, 12:39:07
    I enabled Use Search-Engine Safe URLs from the admin panel but then I get an error 404. I have the .htaccess file in the root folder and everything else is on default

    Linkback: https://www.modified-shop.org/forum/index.php?topic=29466.0

    ShopNix

    • Viel Schreiber
    • Beiträge: 1.208
    Re: Use SEO on localhost
    Antwort #1 am: 24. Februar 2014, 12:48:32
    Who the hell needs SEO on a localhost?

    blaupunkt

    • Neu im Forum
    • Beiträge: 26
    Re: Use SEO on localhost
    Antwort #2 am: 24. Februar 2014, 13:55:51
    It's for testing purposes.

    Matt

    • Experte
    • Beiträge: 4.241
    Re: Use SEO on localhost
    Antwort #3 am: 24. Februar 2014, 14:10:24
    Depends on your config. Most important check if your local apache is configured to allow overwrites in .htaccess.

    Modulfux

    • Experte
    • Beiträge: 3.590
    • Geschlecht:
    Re: Use SEO on localhost
    Antwort #4 am: 24. Februar 2014, 14:12:42
    Very important is to use the dash-version instead of the colon-version.

    blaupunkt

    • Neu im Forum
    • Beiträge: 26
    Re: Use SEO on localhost
    Antwort #5 am: 24. Februar 2014, 15:27:44
    I already checked the apache config. Anyway I have a new question -

    The SEO works if the url is like www.site.com/manufacturers_id=251. When I change it to www.site.com/index.php?manu=m251_Authorname and turn on SEO it gives me an error. If SEO is turned off everything is ok. Do you know what I need to change in order to make it work?

    blaupunkt

    • Neu im Forum
    • Beiträge: 26
    Re: Use SEO on localhost
    Antwort #6 am: 24. Februar 2014, 15:44:35
    My mod_write rule is:

    RewriteCond  (.*)-.-([_0-9]+)\.html$
    RewriteRule ^([^/]*)\.html$ /index.php?manu=$1 [L]

    Matt

    • Experte
    • Beiträge: 4.241
    Re: Use SEO on localhost
    Antwort #7 am: 24. Februar 2014, 19:54:09
    You are sure you are on modified? Both of your URLs are not SEO URLs that modified produces by default.

    You are sure mod_rewrite is installed? Run 'apache2ctl -M' aus root and look for 'rewrite'.

    Your rewrite rule will catch exactly nothing, as both of you URLs don't end with the required .html.

    blaupunkt

    • Neu im Forum
    • Beiträge: 26
    Re: Use SEO on localhost
    Antwort #8 am: 25. Februar 2014, 16:47:49
    Lol I'm sure I'm using modified. The html is added automatically, that's why I haven't included it. Again SEO will transform www.site.com/manufacturers_id=40 to www.site.com/Authorname.html but if I change manufacturers_id to something else SEO stops working (I'm changing the mod_rewrite rule as well).

    I'm modifying the value of return in /inc/xtc_manufacturer_link.inc.php

    Matt

    • Experte
    • Beiträge: 4.241
    Re: Use SEO on localhost
    Antwort #9 am: 25. Februar 2014, 16:56:41
    Again SEO will transform www.site.com/manufacturers_id=40 to www.site.com/Authorname.html

    No it doesn't. It is transfered to Authorname:.:40.html.

    but if I change manufacturers_id to something else SEO stops working (I'm changing the mod_rewrite rule as well).

    Just don't mess with the names of the GET variables!
    4 Antworten
    3786 Aufrufe
    13. Oktober 2015, 14:51:54 von Blaumann
    0 Antworten
    2073 Aufrufe
    07. April 2012, 21:27:57 von peterb.
    7 Antworten
    6193 Aufrufe
    03. Juli 2012, 10:50:06 von piru
    2 Antworten
    3224 Aufrufe
    24. August 2013, 10:52:35 von AndyG