SitePoint Sponsor

User Tag List

Results 1 to 7 of 7
  1. #1
    SitePoint Member
    Join Date
    Jul 2013
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    can this be done with htaccess ?

    Hello everyone,

    I have a script from an indian company who assure me the script is fully translated into my language without problems. I search for Oorjit reviews on internet and find none so I didnīt know about the experience of others so I trust them.
    After setting up the page I realize that the URL keywords cannot be changed only if we pay a very large amount of money to do the job.
    So my question is can I do this with htaccess ?

    I have my web at descuentosyrebajas.es and I need to translate from english to spanish the entire site. I know that apart of an ugly spanglish url this is important for SEO, so:

    descuentosyrebajas.es/activedeals/
    I need to be
    descuentosyrebajas.es/categorias/

    So practically I need to change one keyword. Can this be done ? Thank you so much for your help!
    Last edited by Mittineague; Jul 29, 2013 at 14:49. Reason: delinking example URLs

  2. #2
    Certified Ethical Hacker silver trophybronze trophy dklynn's Avatar
    Join Date
    Feb 2002
    Location
    Auckland
    Posts
    14,604
    Mentioned
    19 Post(s)
    Tagged
    2 Thread(s)
    eli,

    I'm not sure what you bought but keywords are found (when a search engine even looks for them - that's apparently going out of style), they're in the page's <head>...</head> section in a <meta ... /> tag.

    .htaccess is used for directives to the Apache server regarding SERVING an incoming request.

    Regards,

    DK
    David K. Lynn - Data Koncepts is a long-time WebHostingBuzz (US/UK)
    Client and (unpaid) WHB Ambassador
    mod_rewrite Tutorial Article (setup, config, test & write
    mod_rewrite regex w/sample code) and Code Generator

  3. #3
    SitePoint Member
    Join Date
    Jul 2013
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    so is not possible to change the url in my case with htaccess ?
    iīm a beginner in this
    Thanks

  4. #4
    SitePoint Wizard bronze trophy Jeff Mott's Avatar
    Join Date
    Jul 2009
    Posts
    1,149
    Mentioned
    14 Post(s)
    Tagged
    0 Thread(s)
    so is not possible to change the url in my case with htaccess ?
    Actually it should be very simple.

    RewriteRule ^categorias/?$ activedeals

    Internally and under the hood, your site would still use "activedeals", but now if someone visits through the "categorias" URL, then the activedeals content will be returned.
    "First make it work. Then make it better."

  5. #5
    Certified Ethical Hacker silver trophybronze trophy dklynn's Avatar
    Join Date
    Feb 2002
    Location
    Auckland
    Posts
    14,604
    Mentioned
    19 Post(s)
    Tagged
    2 Thread(s)
    Quote Originally Posted by elimedia View Post
    so is not possible to change the url in my case with htaccess ?
    iīm a beginner in this
    Thanks
    Eli,

    It IS possible to perform redirections (using mod_alias or mod_rewrite) via .htaccess but it operates using the requested file information, not "keyword" content within web pages. Perhaps you're using the term "keyword" incorrectly? Above, it looks like you're talking about changing directories or extensionless filenames.

    One of my "soapbox" speeches ("Specificity") is to start any mod_rewrite redirection by specifying EXACTLY what you want to change (which implies that is ONLY what you want to change) and what you want to change it to. Once you have your specification, it's a simple matter to write the mod_rewrite code to perform the redirection.

    You might benefit from reading the mod_rewrite tutorial linked in my signature as it contains explanations and sample code. It's helped may members <snip/> and should help you, too.

    Regards,

    DK
    Last edited by Mittineague; Aug 1, 2013 at 02:53. Reason: Ahem...
    David K. Lynn - Data Koncepts is a long-time WebHostingBuzz (US/UK)
    Client and (unpaid) WHB Ambassador
    mod_rewrite Tutorial Article (setup, config, test & write
    mod_rewrite regex w/sample code) and Code Generator

  6. #6
    SitePoint Member
    Join Date
    Jul 2013
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Jeff Mott View Post
    Actually it should be very simple.

    RewriteRule ^categorias/?$ activedeals

    Internally and under the hood, your site would still use "activedeals", but now if someone visits through the "categorias" URL, then the activedeals content will be returned.
    I have write this code into the htacces but nothing is happening.
    It doesnīt matter if under the categorias url will show the content of activedeals, this is what I need.
    So there is a way to change the word from the URL ? Thanks again.

  7. #7
    SitePoint Wizard bronze trophy Jeff Mott's Avatar
    Join Date
    Jul 2009
    Posts
    1,149
    Mentioned
    14 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by elimedia View Post
    I have write this code into the htacces but nothing is happening.
    Can you copy-paste your entire htaccess into a code block here on the forum so we can take a look?
    "First make it work. Then make it better."


Bookmarks

Posting Permissions

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