Changeset 385375
- Timestamp:
- 05/16/2011 09:36:28 AM (15 years ago)
- Location:
- gts-translation/tags/1.1.7
- Files:
-
- 2 edited
-
readme.txt (modified) (5 diffs)
-
wordpress/GtsLinkRewriter.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
gts-translation/tags/1.1.7/readme.txt
r385352 r385375 122 122 123 123 = How do I use the virtual host feature? = 124 Please see the *Virtual Host Setup* tab.124 Please see the *Virtual Host Setup* section in the *Other Notes* tab. 125 125 126 126 = What is theme translation? = … … 171 171 172 172 = How secure is the system? = 173 Please see the *Security* tab.173 Please see the *Security* section in the *Other Notes* tab. 174 174 175 175 … … 185 185 * Widget now rewrites links using virtual hosts when set. 186 186 * Send 301 redirects to virtual host when a translated blog request comes in via any other host name. 187 * Find nested pages in translated languages if parent page hasn't been translated yet. 187 188 188 189 = 1.1.6 = … … 276 277 277 278 So far, the plugin is self-upgrading...if there's something to report later, we'll add it! 279 280 == Virtual Host Setup == 281 282 ### How to setup the Virtual Host feature on the GTS Plugin ### 283 284 By default, the translated versions of your website/blog resolves to a URL address which is a subdirectory of your site’s URL address. For example, 285 the Spanish version of your site resolves to http://mywebsite.com/language/es. 286 287 With the GTS Translation Plugin Virtual Host feature you can publish translated versions of yor website/blog under a separate subdomain or top-level 288 domain (TLD). So for example, if your blog is www.mywebsite.com you can serve the Spanish version from www.mywebsite.es. Alternately, you can use 289 subdomains (e.g. es.mywebsite.com) so that you don't have to buy a domain for each language. 290 291 To implement the virtual hosts feature, follow these steps: 292 293 ### 1. Configure DNS ### 294 295 **For Top Level Domains:** 296 297 1. Register your new domain (e.g. www.mywebsite.es.) with a recognized domain registrar. 298 1. In your DNS zone, set the A record for www.mywebsite.es to point to the IP address of your web server. 299 300 **For Subdomains:** 301 302 1. Create a CNAME alias for your web server (e.g. es.mywebsite.com) 303 304 How to complete these steps will depend on your hosting provider. If you get stuck, please follow up with your support team. 305 306 ### 2. Configure your Web Server ### 307 308 Please note that all of the translated blogs will be hosted from the same WordPress installation as your current blog. 309 310 **For Hosted Blogs:** 311 312 Your hosting provider will provide a control panel to map a hostname to a Document Root. For each translated host name, enter the exact same Document 313 Root as your blog. 314 315 **For Self-hosted Blogs:** 316 317 These instructions are only valid for Apache. If you use IIS or another web server, please consult the relevant documentation. 318 319 First off, you need to be set up with Name Based Virtual Hosts (http://httpd.apache.org/docs/2.0/vhosts/name-based.html). Once you have your blog's 320 virtual host set up, add the new hostname to the ServerAlias directive. 321 322 323 > <VirtualHost *:80> 324 > 325 > ServerName www.mywebsite.com 326 > ServerAlias www.mywebsite.es 327 > DocumentRoot /path/to/wordpress/install 328 > 329 > # Other configuration here... 330 > 331 > </VirtualHost> 332 333 If you have multiple aliases, remember that the ServerAlias can be a list or can include wildcards…it can save time! 334 335 336 ### 3. Configure the GTS Plugin ### 337 338 This is the easiest part: 339 340 1. Go to the "GTS Settings" admin page. 341 1. Enter the host name in the "Virtual Host" input next to the desired language. 342 1. Click the "Save Changes" button. 343 344 Voila, translated links will point to your new host! 345 278 346 279 347 == Security == … … 310 378 We have dedicated lots of thought to locking down this system, and we are very confident that it's secure. 311 379 After reading this, we hope you will be too! 312 313 == Virtual Host Setup ==314 315 ### How to setup the Virtual Host feature on the GTS Plugin ###316 317 By default, the translated versions of your website/blog resolves to a URL address which is a subdirectory of your site’s URL address. For example,318 the Spanish version of your site resolves to http://mywebsite.com/language/es.319 320 With the GTS Translation Plugin Virtual Host feature you can publish translated versions of yor website/blog under a separate subdomain or top-level321 domain (TLD). So for example, if your blog is www.mywebsite.com you can serve the Spanish version from www.mywebsite.es. Alternately, you can use322 subdomains (e.g. es.mywebsite.com) so that you don't have to buy a domain for each language.323 324 To implement the virtual hosts feature, follow these steps:325 326 ### 1. Configure DNS ###327 328 **For Top Level Domains:**329 330 1. Register your new domain (e.g. www.mywebsite.es.) with a recognized domain registrar.331 1. In your DNS zone, set the A record for www.mywebsite.es to point to the IP address of your web server.332 333 **For Subdomains:**334 335 1. Create a CNAME alias for your web server (e.g. es.mywebsite.com)336 337 How to complete these steps will depend on your hosting provider. If you get stuck, please follow up with your support team.338 339 ### 2. Configure your Web Server ###340 341 Please note that all of the translated blogs will be hosted from the same WordPress installation as your current blog.342 343 **For Hosted Blogs:**344 345 Your hosting provider will provide a control panel to map a hostname to a Document Root. For each translated host name, enter the exact same Document346 Root as your blog.347 348 **For Self-hosted Blogs:**349 350 These instructions are only valid for Apache. If you use IIS or another web server, please consult the relevant documentation.351 352 First off, you need to be set up with Name Based Virtual Hosts (http://httpd.apache.org/docs/2.0/vhosts/name-based.html). Once you have your blog's353 virtual host set up, add the new hostname to the ServerAlias directive.354 355 356 > <VirtualHost *:80>357 >358 > ServerName www.mywebsite.com359 > ServerAlias www.mywebsite.es360 > DocumentRoot /path/to/wordpress/install361 >362 > # Other configuration here...363 >364 > </VirtualHost>365 366 If you have multiple aliases, remember that the ServerAlias can be a list or can include wildcards…it can save time!367 368 369 ### 3. Configure the GTS Plugin ###370 371 This is the easiest part:372 373 1. Go to the "GTS Settings" admin page.374 1. Enter the host name in the "Virtual Host" input next to the desired language.375 1. Click the "Save Changes" button.376 377 Voila, translated links will point to your new host! -
gts-translation/tags/1.1.7/wordpress/GtsLinkRewriter.php
r385352 r385375 371 371 } 372 372 373 $original_path[] = $post ->post_name;373 $original_path[] = $post ? $post->post_name : $part; 374 374 } 375 375 }
Note: See TracChangeset
for help on using the changeset viewer.