V4.1.x SEO Mod question

Discussion in 'Modules / Plugins / Modifications' started by zooi, Oct 22, 2010.

  1. zooi Customer

    Hello,

    For my website I use:

    68C Developer-v4.2.1 with SEO mod seo-v2.1.1
    Sigma template, TemplateCodes

    How can I change, read translate, the bold marked text in dutch language so that the website still keep working without 404

    mydomain.nl/categories/autostoeltjes.html
    mydomain.nl/listing/1/Te_koop_Boneco_7144_ultrasone_luchtbevochtiger.html

    Is this possible? I have tried several times but without succes so far.

    Thank you in advance for your reply.

    Zooi
  2. seymourjames All Hands On Deck

    This may be more difficult than it appears. You could try to use .hraccess and the SEO module to change the word categories and listings. That means you change the destination on the rewrite in .htaccess and in the lower part of the hooks file (arrray afterwards) in the module. It may work but you may get problems overall in the script. Worth a try. Test it out.

    e.g "categories/\\1/sort/\\2/order/\\3/page/\\4.html" becomes "XXXX/\\1/sort/\\2/order/\\3/page/\\4.html",

    and in .htaccess


    RewriteRule ^XXXX/([0-9a-zA-Z_-]+)\.html$ category.php?cat=$1 [NC,QSA]

    What you cannot do though is start changing the order to do away with directory path seperators or it starts to get very complex. e.g. removing the / s.
  3. zooi Customer

    Ok, thanks for the reply. It seems a lot of work and I doubt if it is woth all the trouble that may appear.
  4. seymourjames All Hands On Deck

    No its not. Just about 5 lines in each file if that. Just try one of them.
  5. zooi Customer

    1) I gave it a try and managed to replace categories to categorie and contactus to contact.
    2) Strange enough it gives a blank page when I modify listing to advertentie and listings to advertenties?

    3) Also search to zoek failed and resulted in blank page while I did the same steps as in item 1
  6. seymourjames All Hands On Deck

    Search through your php files to see if the word 'listing' (singular not plural) is hardcoded anywhere else. There may be something else going on. However, just as a caution if you start to alter core files you should document that in the file and with a changelog.

    RewriteRule ^ advertentie/([0-9]+)/([0-9a-zA-Z_-]+)\.html$ viewlisting.php?view=$1 [NC,QSA]

    Search should certainly work. It did for me


    RewriteRule ^zoek\.html$ search.php [NC,QSA]

    You may also need to perhaps hardcode some of your urls in your template as well. I seem to remember it was necessary to do this.
  7. zooi Customer

    Ok thank you for your reply.

Share This Page