Results 1 to 7 of 7
  1. #1
    Join Date
    Jan 2010
    Location
    France
    Posts
    291
    Plugin Contributions
    0

    Default I zenid of urls to remove it I have to click on the home page

    Problems with zenid, the site is http and not https I'm forced to use force cookies? if I leave everything I zenid default on all url but as soon as I click on the home page disappears. If not I click on the home page zenid remains in the url.

    Help me please
    I see in admin, crawl google and other crawler always zenid behind the url.
    Giovanni,
    Zen Cart V2.1

  2. #2
    Join Date
    Nov 2007
    Location
    Sunny Coast, Australia
    Posts
    3,378
    Plugin Contributions
    9

    Default Re: I zenid of urls to remove it I have to click on the home page

    Quote Originally Posted by diamond1 View Post
    Problems with zenid, the site is http and not https I'm forced to use force cookies? if I leave everything I zenid default on all url but as soon as I click on the home page disappears. If not I click on the home page zenid remains in the url.

    Help me please
    I see in admin, crawl google and other crawler always zenid behind the url.

    Take a look at this post: https://www.zen-cart.com/showthread....429#post450429

  3. #3
    Join Date
    Jan 2010
    Location
    France
    Posts
    291
    Plugin Contributions
    0

    Default Re: I zenid of urls to remove it I have to click on the home page

    Hello, thanks for the link but it did not help me.
    Name:  Schermata 2015-10-29 alle 11.35.07.jpg
Views: 289
Size:  54.5 KB
    Giovanni,
    Zen Cart V2.1

  4. #4
    Join Date
    Jan 2010
    Location
    France
    Posts
    291
    Plugin Contributions
    0

    Default Re: I zenid of urls to remove it I have to click on the home page

    I think there is something that the configuration of the server, because in site works well with MAMP local host but what's bad is configured?
    Giovanni,
    Zen Cart V2.1

  5. #5
    Join Date
    Jul 2012
    Posts
    16,816
    Plugin Contributions
    17

    Default Re: I zenid of urls to remove it I have to click on the home page

    Has the template been verified to be compatible with ZC 1.5.4 (assumption based on signature as version has not been stated)?

    Does the same issue occur if you temporarily change to the default template?

    Please answer the posting tips questions to receive more specific assistance.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  6. #6
    Join Date
    Jan 2010
    Location
    France
    Posts
    291
    Plugin Contributions
    0

    Default Re: I zenid of urls to remove it I have to click on the home page

    I think that misses the templates as in localhost I have no problems sessions or zenid. place my .htacces and maybe one that has a problem.
    PHP Code:
    ##### NOTE: Replace /shop/ with the relative web path of your catalog in the "Rewrite Base" line below:

    Options +FollowSymLinks
    RewriteEngine On
    RewriteBase 
    /

    #####Redirect 302 / https://www.mydomaine.com/



    # 301 Redirect index.php?main_page=index
    RewriteCond %{QUERY_STRING}  ^main_page=page&id=19$ [NC]
    RewriteRule ^index\.php$ /index.php?main_page=product_info&products_id=19 [R=301,NE,NC,L]

    RewriteCond %{QUERY_STRING}  ^main_page=$ [NC]
    RewriteRule ^index\.phphttp://www.mydomaine.com/? [R=301,NE,NC,L]

    RewriteCond %{QUERY_STRINGmain_page=product_info&products_id=(3605|1045|1075|1090|1103|1110|1120|1128|1144|1146|1150|1167|1192|1193|1271|1274|1277|1280|1281|1316|1324|1352|1357|1386|1398|1433|1508|1522|1527|1534|1574|1576|1588|1599|1619|1623|1680|1681|1700|1704|1713|1725|1739|1753|1766|1770|1793|1810|1833|1907|1934|1946|1951|1961|1973|1980|1988|1997|2023|2024|2045|2083|2087|2089|2091|2118|2124|2173|2185|2207|2230|2233|2254|2292|2311|2339|2340|2341|2349|2351|2373|2380|2467|2471|2477|2481|2502|2506|2514|2562|2608|2642|2645|2659|2667|2674|2678|2701|2702|2704|2706|2710|2711|2756|278|2780|2798|284|2861|2864|2887|2908|2916|2928|2938|2943|2946|297|2980|2986|300|3001|3010|3033|3036|3085|3093|3183|3198|3206|3209|3217|3232|3273|3279|3289|3293|3304|3349|3355|3388|3397|3399|3411|3422|3440|3448|3465|3483|3492|3498|3501|3524|3531|3532|3536|3554|3563|3566|3583|3592|360|626|632|635|674|680|684|687|840|903|947|361|959|960|967|999|3634|3635|3690|3691|3757|3769|3782|3784|3788|3793|3821|458|479|492|3630|604|607|622|625|1426|3611|3688|1767|1995|2595|2812|361|3726|908|3622|2778|2782|2783|2784|2809|2840|2842|2843|2856|3004|3008|3009|3013|3025|3032|3033|3049|3601|3606|3297|1193|1049|3658|3659|1694|1701|1702|1705|1712|1713|1737|2562|2572|2606|2617|2759|2760|2862|2865|2874|2718|3693|3694|3698|2904|2917|2925|2926|2940|2942|2953|2962|2964|2967|2968|2976|2977|2989|3060|3074|3075|3081|3091|3373|3378|3220|3225|3226|3264|3270|3274|3277|3292|3301|3302|3531|3328|3340|3245|3534|3356|3366|3357|3358|3539|911|915|920|948|955|962|980|993|1016|1023|1062|1064|1071|1081|3812|1085|3741|1089|1108|1117|1119|1121|1122|1132|1137|1146|1194|1036|1022|1031|1032|1041|1043|1045|1062|1085|1090|1104|1106|1110|1117|1128|1129|1141|1144|1192|1193|1194|1196|1200|1271|1274|1280|1284|1311|1316|1347|1352|1357|1361|1369|1381|1386|1390|1409|1430|1433|1500|1508|1513|1518|1519|1527|1528|1532|1534|1540|1549|1588|1592|1597|1599|1619|1663|1680|1681|1687|1696|1699|1707|1713|1724|1725|1730|1753|1763|1766|1772|1773|1791|1793|1797|1819|1820|1821|1833|1837|1839|1863|1883|1884|1904|1926|1928|1932|1934|1936|1949|1964|1980|1987|1988|1992|1996|1997|2004|2021|2029|2035|2036|2053|2061|2064|2070|2087|2091|2096|2099|2118|2124|2173|2183|2185|2207|2212|2214|2223|2237|2254|2301|2311|2329|2334|2339|2340|2341|2349|2351|2373|2380|2392|2395|2397|2405|2419|2423|2435|2446|2453|2466|2467|2481|2502|2505|2507|2508|2512|2514|2528|2533|2553|2560|2561|2562|2565|2567|2603|2608|2621|2633|2642|2645|2650|2659|2667|2668|2674|2699|2701|2704|2706|2707|2715|278|2781|2783|2792|2798|2808|2814|282|2851|2864|2870|2876|2909|2914|2916|2928|294|2963|2986|2989|3010|3019|3028|3030|3036|3048|3065|3085|3093|3183|3196|3198|3206|3207|3208|3209|3217|3221|3232|3234|3273|3278|3279|3281|3293|3299|3300|3302|3304|3316|3332|3338|3347|3349|3385|3388|3389|3397|3406|3411|3423|3428|3435|3436|3438|3440|3448|3452|3465|3467|3472|3483|3498|3501|3517|3523|3528|3531|3536|3543|3550|3554|3557|3566|3567|3583|3591|3592|3593|360|3606|361|3622|3626|3627|3630|3667|3678|3680|3682|3684|3688|3689|3690|3691|3694|370|3706|3709|3712|3730|3735|3740|3757|3771|3782|3793|3812|3820|3821|431|446|458|464|466|467|479|481|490|505|513|600|604|606|607|608|622|625|626|632|653|658|670|674|680|687|703|719|841|843|915|922|947|948|949|955|960|967|986|993|999)
    RewriteRule ^.*$ - [G,L]

    # 301 Redirect 1
    RewriteCond %{QUERY_STRING}  ^$
    RewriteRule ^index\.php/xmlrpc\.php$ /? [R=301,NE,NC,L]

    # 301 Redirect errori google
    RedirectMatch 301 ^/mobile/$ http://www.mydomaine.com/
    # RedirectMatch 301 ^/m/$ http://www.mydomaine.com/
    Redirect 301 /xmlrpc.php http://www.mydomaine.com/

    # Redirection http[s]://[www.]mydomaine.com/index.php --> http[s]://[www.]mydomaine.com/
    RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /index\.phpHTTP/
    RewriteRule ^index.phphttp://www.mydomaine.com/? [R=301,L]




    ## 301 Redirects
    # 301 Redirect 1
    RewriteCond %{QUERY_STRING}  ^main_page=index&manufacturers_id=10$ [NC]
    RewriteRule ^index\.php$ /index.php?main_page=index&cPath=[R=301,NE,NC,L]

    # 301 Redirect 2
    RewriteCond %{QUERY_STRING}  ^cPath=74$ [NC]
    RewriteRule ^index\.php$ /index.php?main_page=product_info&products_id=108 [R=301,NE,NC,L]

    # 301 Redirect 1
    RewriteCond %{QUERY_STRING}  ^main_page=product_info&products_id=845$ [NC]
    RewriteRule ^index\.php$ /index.php?main_page=product_info&products_id=853 [R=301,NE,NC,L]

    # 301 Redirect 2
    RewriteCond %{QUERY_STRING}  ^main_page=product_info&products_id=846$ [NC]
    RewriteRule ^index\.php$ /index.php?main_page=product_info&products_id=855 [R=301,NE,NC,L]

    # 301 Redirect 3
    RewriteCond %{QUERY_STRING}  ^main_page=product_info&products_id=254$ [NC]
    RewriteRule ^index\.php$ /index.php?main_page=product_info&products_id=153 [R=301,NE,NC,L]

    # 301 Redirect 4
    RewriteCond %{QUERY_STRING}  ^main_page=product_info&products_id=517$ [NC]
    RewriteRule ^index\.php$ /index.php?main_page=product_info&products_id=93 [R=301,NE,NC,L]

    # 301 Redirect 5
    RewriteCond %{QUERY_STRING}  ^main_page=product_info&products_id=518$ [NC]
    RewriteRule ^index\.php$ /index.php?main_page=product_info&products_id=93 [R=301,NE,NC,L]

    # 301 Redirect 6
    RewriteCond %{QUERY_STRING}  ^main_page=product_info&products_id=516$ [NC]
    RewriteRule ^index\.php$ /index.php?main_page=product_info&products_id=153 [R=301,NE,NC,L]

    # 301 Redirect 7
    RewriteCond %{QUERY_STRING}  ^main_page=index&cPath=79_316$ [NC]
    RewriteRule ^index\.php$ /index.php?main_page=index&cPath=16 [R=301,NE,NC,L]

    # 301 Redirect 8
    RewriteCond %{QUERY_STRING}  ^main_page=index&cPath=316$ [NC]
    RewriteRule ^index\.php$ /index.php?main_page=index&cPath=16 [R=301,NE,NC,L]

    # 301 Redirect 9
    RewriteCond %{QUERY_STRING}  ^main_page=index&cPath=79_263$ [NC]
    RewriteRule ^index\.php$ /index.php?main_page=index&cPath=262 [R=301,NE,NC,L]

    # 301 Redirect 10
    RewriteCond %{QUERY_STRING}  ^main_page=index&cPath=263$ [NC]
    RewriteRule ^index\.php$ /index.php?main_page=index&cPath=262 [R=301,NE,NC,L]

    # 301 Redirect 11
    RewriteCond %{QUERY_STRING}  ^main_page=index&cPath=79_260$ [NC]
    RewriteRule ^index\.php$ /index.php?main_page=index&cPath=255 [R=301,NE,NC,L]

    # 301 Redirect 12
    RewriteCond %{QUERY_STRING}  ^main_page=index&cPath=260$ [NC]
    RewriteRule ^index\.php$ /index.php?main_page=index&cPath=255 [R=301,NE,NC,L]

    # 301 Redirect 13
    RewriteCond %{QUERY_STRING}  ^main_page=index&cPath=79_261$ [NC]
    RewriteRule ^index\.php$ /index.php?main_page=index&cPath=262 [R=301,NE,NC,L]

    # 301 Redirect 14
    RewriteCond %{QUERY_STRING}  ^main_page=index&cPath=261$ [NC]
    RewriteRule ^index\.php$ /index.php?main_page=index&cPath=262 [R=301,NE,NC,L]

    # 301 Redirect 15
    RewriteCond %{QUERY_STRING}  ^main_page=index&cPath=251$ [NC]
    RewriteRule ^index\.php$ /index.php?main_page=index&cPath=262 [R=301,NE,NC,L]

    # 301 Redirect 16
    RewriteCond %{QUERY_STRING}  ^main_page=index&cPath=79_251$ [NC]
    RewriteRule ^index\.php$ /index.php?main_page=index&cPath=262 [R=301,NE,NC,L]

    # 301 Redirect 17
    RewriteCond %{QUERY_STRING}  ^main_page=index&cPath=79_314$ [NC]
    RewriteRule ^index\.php$ /index.php?main_page=index&cPath=16 [R=301,NE,NC,L]

    # 301 Redirect 18
    RewriteCond %{QUERY_STRING}  ^main_page=index&cPath=314$ [NC]
    RewriteRule ^index\.php$ /index.php?main_page=index&cPath=16 [R=301,NE,NC,L]

    # 301 Redirect 19
    RewriteCond %{QUERY_STRING}  ^main_page=index&cPath=79_256$ [NC]
    RewriteRule ^index\.php$ /index.php?main_page=index&cPath=255 [R=301,NE,NC,L]

    # 301 Redirect 20
    RewriteCond %{QUERY_STRING}  ^main_page=index&cPath=256$ [NC]
    RewriteRule ^index\.php$ /index.php?main_page=index&cPath=255 [R=301,NE,NC,L]

    # 301 Redirect 21
    RewriteCond %{QUERY_STRING}  ^main_page=index&cPath=80$ [NC]
    RewriteRule ^index\.php$ /index.php?main_page=index&cPath=11 [R=301,NE,NC,L]

    # 301 Redirect 22
    RewriteCond %{QUERY_STRING}  ^main_page=index&cPath=277$ [NC]
    RewriteRule ^index\.php$ /index.php?main_page=index&cPath=11 [R=301,NE,NC,L]

    # 301 Redirect 23
    RewriteCond %{QUERY_STRING}  ^main_page=product_info&products_id=1071$ [NC]
    RewriteRule ^index\.php$ /index.php?main_page=product_info&products_id=15 [R=301,NE,NC,L]

    # 301 Redirect 24
    RewriteCond %{QUERY_STRING}  ^main_page=product_info&products_id=1070$ [NC]
    RewriteRule ^index\.php$ /index.php?main_page=product_info&products_id=15 [R=301,NE,NC,L]

    # 301 Redirect 25
    RewriteCond %{QUERY_STRING}  ^main_page=product_info&products_id=1072$ [NC]
    RewriteRule ^index\.php$ /index.php?main_page=product_info&products_id=15 [R=301,NE,NC,L]

    # 301 Redirect 26
    RewriteCond %{QUERY_STRING}  ^main_page=index&cPath=283$ [NC]
    RewriteRule ^index\.php$ /index.php?main_page=index&cPath=11 [R=301,NE,NC,L]

    # 301 Redirect 27
    RewriteCond %{QUERY_STRING}  ^main_page=product_info&products_id=34$ [NC]
    RewriteRule ^index\.php$ /index.php?main_page=product_info&products_id=1071 [R=301,NE,NC,L]

    # 301 Redirect 28
    RewriteCond %{QUERY_STRING}  ^main_page=product_info&products_id=3713$ [NC]
    RewriteRule ^index\.php$ /index.php?main_page=product_info&products_id=62 [R=301,NE,NC,L]

    # 301 Redirect 29
    RewriteCond %{QUERY_STRING}  ^main_page=product_info&products_id=3714$ [NC]
    RewriteRule ^index\.php$ /index.php?main_page=product_info&products_id=62 [R=301,NE,NC,L]

    # 301 Redirect 30
    RewriteCond %{QUERY_STRING}  ^main_page=index&cPath=301$ [NC]
    RewriteRule ^index\.php$ /index.php?main_page=index&cPath=14 [R=301,NE,NC,L]

    # 301 Redirect 31
    RewriteCond %{QUERY_STRING}  ^main_page=index&cPath=83_302$ [NC]
    RewriteRule ^index\.php$ /index.php?main_page=index&cPath=17 [R=301,NE,NC,L]

    # 301 Redirect 32
    RewriteCond %{QUERY_STRING}  ^main_page=index&cPath=83_308$ [NC]
    RewriteRule ^index\.php$ /index.php?main_page=index&cPath=17 [R=301,NE,NC,L]

    # 301 Redirect 33
    RewriteCond %{QUERY_STRING}  ^main_page=index&cPath=83_309$ [NC]
    RewriteRule ^index\.php$ /index.php?main_page=index&cPath=193 [R=301,NE,NC,L]

    # 301 Redirect 34
    RewriteCond %{QUERY_STRING}  ^main_page=index&cPath=74_198$ [NC]
    RewriteRule ^index\.php$ /index.php?main_page=index&cPath=198 [R=301,NE,NC,L]

    # 301 Redirect 35
    RewriteCond %{QUERY_STRING}  ^main_page=index&cPath=74_195$ [NC]
    RewriteRule ^index\.php$ /index.php?main_page=index&cPath=[R=301,NE,NC,L]

    # 301 Redirect 36
    RewriteCond %{QUERY_STRING}  ^main_page=index&cPath=195$ [NC]
    RewriteRule ^index\.php$ /index.php?main_page=index&cPath=[R=301,NE,NC,L]

    # 301 Redirect 37
    RewriteCond %{QUERY_STRING}  ^main_page=product_info&products_id=3809$ [NC]
    RewriteRule ^index\.php$ /index.php?main_page=product_info&products_id=3157 [R=301,NE,NC,L]

    # 301 Redirect 38
    RewriteCond %{QUERY_STRING}  ^main_page=index&cPath=74_197$ [NC]
    RewriteRule ^index\.php$ /index.php?main_page=index&cPath=198 [R=301,NE,NC,L]

    # 301 Redirect 39
    RewriteCond %{QUERY_STRING}  ^main_page=index&cPath=197$ [NC]
    RewriteRule ^index\.php$ /index.php?main_page=index&cPath=198 [R=301,NE,NC,L]

    # 301 Redirect 40
    RewriteCond %{QUERY_STRING}  ^main_page=index&cPath=74_196$ [NC]
    RewriteRule ^index\.php$ /index.php?main_page=index&cPath=198 [R=301,NE,NC,L]

    # 301 Redirect 41
    RewriteCond %{QUERY_STRING}  ^main_page=index&cPath=196$ [NC]
    RewriteRule ^index\.php$ /index.php?main_page=index&cPath=198 [R=301,NE,NC,L]

    # 301 Redirect 42
    RewriteCond %{QUERY_STRING}  ^main_page=product_info&products_id=3121$ [NC]
    RewriteRule ^index\.php$ /index.php?main_page=product_info&products_id=97 [R=301,NE,NC,L]

    # 301 Redirect 43
    RewriteCond %{QUERY_STRING}  ^main_page=product_info&products_id=3120$ [NC]
    RewriteRule ^index\.php$ /index.php?main_page=product_info&products_id=45 [R=301,NE,NC,L]

    # 301 Redirect 44
    RewriteCond %{QUERY_STRING}  ^main_page=product_info&products_id=33119$ [NC]
    RewriteRule ^index\.php$ /index.php?main_page=product_info&products_id=134 [R=301,NE,NC,L]

    # 301 Redirect 45
    RewriteCond %{QUERY_STRING}  ^main_page=product_info&products_id=33114$ [NC]
    RewriteRule ^index\.php$ /index.php?main_page=product_info&products_id= [R=301,NE,NC,L]

    # 301 Redirect 46
    RewriteCond %{QUERY_STRING}  ^main_page=product_info&products_id=3113$ [NC]
    RewriteRule ^index\.php$ /index.php?main_page=product_info&products_id=122 [R=301,NE,NC,L]

    # 301 Redirect 47
    RewriteCond %{QUERY_STRING}  ^main_page=product_info&products_id=3118$ [NC]
    RewriteRule ^index\.php$ /index.php?main_page=product_info&products_id=122 [R=301,NE,NC,L]

    # 301 Redirect 48
    RewriteCond %{QUERY_STRING}  ^main_page=product_info&products_id=3700$ [NC]
    RewriteRule ^index\.php$ /index.php?main_page=product_info&products_id=2769 [R=301,NE,NC,L]

    # 301 Redirect 49
    RewriteCond %{QUERY_STRING}  ^main_page=product_info&products_id=3701$ [NC]
    RewriteRule ^index\.php$ /index.php?main_page=product_info&products_id=57 [R=301,NE,NC,L]

    # 301 Redirect 50
    RewriteCond %{QUERY_STRING}  ^main_page=product_info&products_id=3702$ [NC]
    RewriteRule ^index\.php$ /index.php?main_page=product_info&products_id=57 [R=301,NE,NC,L]

    ## 301 Redirects
    # 301 Redirect 1
    RewriteCond %{QUERY_STRING}  ^main_page=index&cPath=83$ [NC]
    RewriteRule ^index\.php$ /index.php?main_page=index&cPath=17 [R=301,NE,NC,L]

    # 301 Redirect 2
    RewriteCond %{QUERY_STRING}  ^main_page=index&cPath=171$ [NC]
    RewriteRule ^index\.php$ /index.php?main_page=index&cPath=37 [R=301,NE,NC,L]

    # 301 Redirect 3
    RewriteCond %{QUERY_STRING}  ^main_page=index&cPath=172$ [NC]
    RewriteRule ^index\.php$ /index.php?main_page=index&cPath=[R=301,NE,NC,L]

    # 301 Redirect 4
    RewriteCond %{QUERY_STRING}  ^main_page=index&cPath=287$ [NC]
    RewriteRule ^index\.php$ /index.php?main_page=index&cPath=11 [R=301,NE,NC,L]

    ## 301 Redirects
    # 301 Redirect 1
    RewriteCond %{QUERY_STRING}  ^cPath=72$ [NC]
    RewriteRule ^index\.php$ /index.php?main_page=index&cPath=[R=301,NE,NC,L]

    # 301 Redirect 2
    RewriteCond %{QUERY_STRING}  ^main_page=specials$ [NC]
    RewriteRule ^index\.php$ /index.php?main_page=index&cPath=13 [R=301,NE,NC,L]

    # 301 Redirect 3
    RewriteCond %{QUERY_STRING}  ^cPath=65$ [NC]
    RewriteRule ^index\.php$ /index.php?main_page=index&cPath=[R=301,NE,NC,L]

    ## 301 Redirects
    # 301 Redirect 1
    RewriteCond %{QUERY_STRING}  ^main_page=page&id=4$ [NC]
    RewriteRule ^index\.php$ /index.php?main_page=about_us [R=301,NE,NC,L]

    RewriteCond %{QUERY_STRINGmain_page=index&cPath=(81_110|81_108|81_111|81_106|110|108|106|111|74_199|199|74_203|203|74_202|202|74_327|327|74_167|167|304|83_304|242|83_242|243|83_243|241|83_241|244|83_244|310|83_310|76|81|81_326|326|81_299|299|81_293|293|81_296|296|81_295|295|81_297|297|81_290|290|81_298|298|81_292|292|81_294|294|81_291|291|76_227|227|76_231|231|76_232|232|76_234|234|76_225|225|76_235|235|76_229|229|76_230|230|76_323|323|76_236|236|76_226|226|76_228|228|72_143|72_124|124|72_123|123|72_113|113|72_114|114|72_127|127|72_120|120|72_121|121|72_134|134|72_119|119|72_115|115|72_129|129|72_126|126|72_156|156|72_320|320|72_140|140|72_117|117|72_116|116|72_118|118|72_150|150|72_151|151|72_154|154|72_153|153|72_152|152|72_147|147|72_136|136|72_137|137|72_135|135|72_149|149|72_155|155|72_158|158|143|72_146|146|72_144|144|72_138|138|330|72_330|166|72|65_99|65_95|65_97|65_98|65_87|65_85|65_101|65_93|65_91|65|79_254|254|79_252|252|79_250|250|79_259|259|79_263|263|79_258|258|79_322|322|79_313|313|79_247|247|79_249|249|79_253|253|79_248|248)
    RewriteRule ^.*$ - [G,L]

    RewriteCond %{QUERY_STRINGmain_page=product_info&cPath=(81_110|81_108|81_111|81_106|110|108|106|111|74_199|199|74_203|203|74_202|202|74_327|327|74_167|167|304|83_304|242|83_242|243|83_243|241|83_241|244|83_244|310|83_310|76|81|81_326|326|81_299|299|81_293|293|81_296|296|81_295|295|81_297|297|81_290|290|81_298|298|81_292|292|81_294|294|81_291|291|76_227|227|76_231|231|76_232|232|76_234|234|76_225|225|76_235|235|76_229|229|76_230|230|76_323|323|76_236|236|76_226|226|76_228|228|72_143|72_124|124|72_123|123|72_113|113|72_114|114|72_127|127|72_120|120|72_121|121|72_134|134|72_119|119|72_115|115|72_129|129|72_126|126|72_156|156|72_320|320|72_140|140|72_117|117|72_116|116|72_118|118|72_150|150|72_151|151|72_154|154|72_153|153|72_152|152|72_147|147|72_136|136|72_137|137|72_135|135|72_149|149|72_155|155|72_158|158|143|72_146|146|72_144|144|72_138|138|330|72_330|166|72|65_99|65_95|65_97|65_98|65_87|65_85|65_101|65_93|65_91|65|79_254|254|79_252|252|79_250|250|79_259|259|79_263|263|79_258|258|79_322|322|79_313|313|79_247|247|79_249|249|79_253|253|79_248|248)
    RewriteRule ^.*$ - [G,L]
    ##### NOTE: fine redirezione errori 404:

    # Redirection mydomaine.com --> www.mydomaine.com :
    rewritecond %{http_host} ^mydomaine.com
    RewriteRule 
    ^(.*) http://www.mydomaine.com/ [R=301,L]


    ##### RewriteRule (.*)\.html http://www.mydomaine.com [R=301]

    ##### Redirect 301 /site_map.html http://www.mydomaine.com/index.php?main_page=site_map


    ErrorDocument 404 /index.php?main_page=page_not_found
    ErrorDocument 410 
    /410.php
    ErrorDocument 503 
    /503.php
    ErrorDocument 403 
    /403.php
    ErrorDocument 500 
    /500.php

    <IfModule mod_deflate.c>
    # Insert filters / compress text, html, javascript, css, xml:
    AddOutputFilterByType DEFLATE text/plain
    AddOutputFilterByType DEFLATE text
    /html
    AddOutputFilterByType DEFLATE text
    /xml
    AddOutputFilterByType DEFLATE text
    /css
    AddOutputFilterByType DEFLATE text
    /vtt 
    AddOutputFilterByType DEFLATE text
    /x-component
    AddOutputFilterByType DEFLATE application
    /xml
    AddOutputFilterByType DEFLATE application
    /xhtml+xml
    AddOutputFilterByType DEFLATE application
    /rss+xml
    AddOutputFilterByType DEFLATE application
    /js
    AddOutputFilterByType DEFLATE application
    /javascript
    AddOutputFilterByType DEFLATE application
    /x-javascript
    AddOutputFilterByType DEFLATE application
    /x-httpd-php
    AddOutputFilterByType DEFLATE application
    /x-httpd-fastphp
    AddOutputFilterByType DEFLATE application
    /atom+xml 
    AddOutputFilterByType DEFLATE application
    /json
    AddOutputFilterByType DEFLATE application
    /ld+json 
    AddOutputFilterByType DEFLATE application
    /vnd.ms-fontobject 
    AddOutputFilterByType DEFLATE application
    /x-font-ttf 
    AddOutputFilterByType DEFLATE application
    /x-web-app-manifest+json 
    AddOutputFilterByType DEFLATE font
    /opentype 
    AddOutputFilterByType DEFLATE image
    /svg+xml
    AddOutputFilterByType DEFLATE image
    /x-icon 

    # Ausnahme: Grafiken
    SetEnvIfNoCase REQUEST_URI \.(?:gif|jpg|jpeg|png|svg)$ no-gzip dont_vary

    # Drop problematic browsers
    BrowserMatch ^Mozilla/4 gzip-only-text/html
    BrowserMatch 
    ^Mozilla/4\.0[678no-gzip
    BrowserMatch 
    \bMSI[E] !no-gzip !gzip-only-text/html

    # Make sure proxies don't deliver the wrong content
    Header append Vary User-Agent env=!dont-vary
    </IfModule>


    ## EXPIRES CACHING ##
    <IfModule mod_expires.c>
    ExpiresActive On
    ExpiresDefault 
    "access plus 1 week"
    ExpiresByType image/jpg "access plus 1 year"
    ExpiresByType image/jpeg "access plus 1 year"
    ExpiresByType image/gif "access plus 1 year"
    ExpiresByType image/png "access plus 1 year"
    ExpiresByType image/svg+xml "access plus 1 month" 
    ExpiresByType text/css "access plus 1 month"
    ExpiresByType text/html "access plus 1 minute"
    ExpiresByType text/plain "access plus 1 month"
    ExpiresByType text/x-component "access plus 1 month" 
    ExpiresByType text/javascript "access plus 1 month"
    ExpiresByType text/x-javascript "access plus 1 month"
    ExpiresByType application/pdf "access plus 1 month"
    ExpiresByType application/javascript "access plus 1 months"
    ExpiresByType application/x-javascript "access plus 1 months"
    ExpiresByType application/x-shockwave-flash "access plus 1 month"
    ExpiresByType image/x-icon "access plus 1 year"
    ExpiresByType application/xml "access plus 0 seconds" 
    ExpiresByType application/json "access plus 0 seconds" 
    ExpiresByType application/ld+json "access plus 0 seconds" 
    ExpiresByType application/xml "access plus 0 seconds" 
    ExpiresByType text/xml "access plus 0 seconds" 
    ExpiresByType application/x-web-app-manifest+json "access plus 0 seconds" 
    ExpiresByType text/cache-manifest "access plus 0 seconds" 
    ExpiresByType audio/ogg "access plus 1 month" 
    ExpiresByType video/mp4 "access plus 1 month" 
    ExpiresByType video/ogg "access plus 1 month" 
    ExpiresByType video/webm "access plus 1 month" 
    ExpiresByType application/atom+xml "access plus 1 hour" 
    ExpiresByType application/rss+xml "access plus 1 hour" 
    ExpiresByType application/font-woff "access plus 1 month" 
    ExpiresByType application/vnd.ms-fontobject "access plus 1 month" 
    ExpiresByType application/x-font-ttf "access plus 1 month" 
    ExpiresByType font/opentype "access plus 1 month" 
    </IfModule>
    ## EXPIRES CACHING ##


    #Alternative caching using Apache's "mod_headers", if it's installed.
    #Caching of common files - ENABLED
    <IfModule mod_headers.c>
    <
    FilesMatch "\.(ico|pdf|flv|swf|js|css|gif|png|jpg|jpeg|ico|txt|html|htm)$">
    Header set Cache-Control "max-age=2592000, public"
    </FilesMatch>
    </
    IfModule>


    <
    IfModule mod_headers.c>
      <
    FilesMatch "\.(js|css|xml|gz)$">
        
    Header append Vary Accept-Encoding
      
    </FilesMatch>
    </
    IfModule>


    <
    IfModule mod_gzip.c>
      
    mod_gzip_on Yes
      mod_gzip_dechunk Yes
      mod_gzip_item_include file 
    \.(html?|txt|css|js|php|pl)$
      
    mod_gzip_item_include handler ^cgi-script$
      
    mod_gzip_item_include mime ^text/.*
      
    mod_gzip_item_include mime ^application/x-javascript.*
      
    mod_gzip_item_exclude mime ^image/.*
      
    mod_gzip_item_exclude rspheader ^Content-Encoding:.*gzip.*
    </
    IfModule>

    # Set Keep Alive Header
    <IfModule mod_headers.c>
        
    Header set Connection keep-alive
    </IfModule>

    # If your server don't support ETags deactivate with "None" (and remove header)
    <IfModule mod_expires.c
      <
    IfModule mod_headers.c
        
    Header unset ETag 
      
    </IfModule
      
    FileETag None 
    </IfModule>

    <
    IfModule mod_headers.c>
    Header always set X-FRAME-OPTIONS "DENY"
    </IfModule>

    #Bloquez la totalité du contenu lorsqu'une attaque XSS est suspectée
    <IfModule mod_headers.c>
    Header always set X-XSS-Protection "1; mode=block"
    </IfModule>

    #Désactivez la détection automatique du type des ressources
    <IfModule mod_headers.c>
    Header always set X-Content-Type-Options "nosniff"
    </IfModule>

    <
    Files php.ini>
    order allow,deny
    deny from all
    </Files
    Giovanni,
    Zen Cart V2.1

  7. #7
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,874
    Plugin Contributions
    96

    Default Re: I zenid of urls to remove it I have to click on the home page

    I thought that it was, in the best case, "bad practice" to mix Rewrite and Redirect directives in an .htaccess file.

 

 

Similar Threads

  1. if click on home I have forbidden
    By giuly in forum Installing on a Linux/Unix Server
    Replies: 7
    Last Post: 18 Jan 2012, 08:19 PM
  2. Replies: 5
    Last Post: 6 May 2010, 06:05 PM
  3. zenid is showing in all the URLs
    By hiteshchawda in forum General Questions
    Replies: 2
    Last Post: 29 Apr 2010, 08:01 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg