[text]RewriteRule ^manufacturers/([^/]+) /index.php?page=manufacturers&menu=home&manufacturer=$1 [L]
RewriteRule ^([^/\.]+)/?$ index.php?page=$1&menu=home [L]
RewriteRule ^$ index.html [L][/text]
We have a site that uses HTACCESS, but we are building foreign versions. While I need the filenames to be in English, such as /products, we want the URLs to be in the foreign language.
Can you do a /page per file?
So www.thiswebsite.es/preguntas, takes you to www.thiswebsite.es/index.php?page=faq ??
We have about a dozen of these pages that need doing.
Thanks.
HTACCESS - can you modify /hello ?
Moderator: General Moderators
-
simonmlewis
- DevNet Master
- Posts: 4435
- Joined: Wed Oct 08, 2008 3:39 pm
- Location: United Kingdom
- Contact:
HTACCESS - can you modify /hello ?
Love PHP. Love CSS. Love learning new tricks too.
All the best from the United Kingdom.
All the best from the United Kingdom.
Re: HTACCESS - can you modify /hello ?
You can do one entry per page if needed. Since you're already routing everything to a single page, you may want to look into adding a router to handle all these requests for you.
-
simonmlewis
- DevNet Master
- Posts: 4435
- Joined: Wed Oct 08, 2008 3:39 pm
- Location: United Kingdom
- Contact:
Re: HTACCESS - can you modify /hello ?
How?
Love PHP. Love CSS. Love learning new tricks too.
All the best from the United Kingdom.
All the best from the United Kingdom.
Re: HTACCESS - can you modify /hello ?
Something like this maybe?
Code: Select all
RewriteRule ^(first-page|second-page|third-page)(/)?$ index.php?page=$1 [QSA, L]-
simonmlewis
- DevNet Master
- Posts: 4435
- Joined: Wed Oct 08, 2008 3:39 pm
- Location: United Kingdom
- Contact:
Re: HTACCESS - can you modify /hello ?
Thanks for that.
How does it know that "preguntas" is opening faq.inc ??
How does it know that "preguntas" is opening faq.inc ??
Love PHP. Love CSS. Love learning new tricks too.
All the best from the United Kingdom.
All the best from the United Kingdom.
Re: HTACCESS - can you modify /hello ?
Oh right, the translation. My bad. Forgot about that.
Code: Select all
RewriteRule ^preguntas/?$ index.php?page=faq [L]
RewriteRule ^otherpage$ index.php?page=tomatoes [L]
etc