We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

URL Rewrite

How Do I?

dellanesta's avatar
dellanesta
8 posts
9 years ago
dellanesta's avatar dellanesta

Hi, i nedd to rewrite some static categories URL

example:

from www.mywebsite.com/index.php/cat_template/cat_url_indicator/cat-url

to

www.mywebsite.com/custom/url/

How can i do with htaccess?

Help me

Please Thank you

Michele

       
Pedro Guimaraes's avatar
Pedro Guimaraes
170 posts
9 years ago
Pedro Guimaraes's avatar Pedro Guimaraes

Hi there Michele,

The first step is to remove index.php from URLs. Here are the EllisLab instructions: Removing index.php from URLs

Then, you have several options, you can use Template Routes, which is what I would do.

The other option is to use URL Rewriting, but if what you need to do can be accomplished with Template Routes, that’s likely the best solution.

Hope this helps!

       
dellanesta's avatar
dellanesta
8 posts
9 years ago
dellanesta's avatar dellanesta

Hi Pedro, thank you for answer me

if i have this case

Current Language = it (i’m using transcribe for translation) Page Category Template = pagcat Category URL Indicator = indcat Category Name = sports-wear

the expressionengine url for this page is:

www.mysite.com/it/pagcat/indcat/sports-wear

I need to have italian url (for SEO) when current language is Italian that It has nothing to do with the original URL like: www.mysite.com/it/abbiagliamento-sportivo

How can i achieve that with Template route (or htaccess)?

Thank you

       
Pedro Guimaraes's avatar
Pedro Guimaraes
170 posts
9 years ago
Pedro Guimaraes's avatar Pedro Guimaraes

You can definitely hardcore this with URL rewriting. The disadvantage is that your links will be hard coded. Unfortunately I don’t have much experience with multi-language sites (or Transcribe), but their docs say that they do URL translation routing. Have you reached out to them regarding this issue?

       
dellanesta's avatar
dellanesta
8 posts
9 years ago
dellanesta's avatar dellanesta

no, but i don’t be able to rewrite also a single url without language code

exampe: www.mysite.com/template_group/template_name => www.mysite.com/custom/url

How can i achieve that? have you any ideas or working example?

Thank you Michele

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.