-
-
Save johndyer/1080261 to your computer and use it in GitHub Desktop.
#simple version (http://mysite.com/+ goes to your Google+ account) | |
Redirect /+ https://plus.google.com/[yourid] | |
Redirect /@ https://twitter.com/[twitterusername] | |
#powerhouse (http://mysite.com/+/about goes to your Google+ about page) | |
RedirectMatch ^/\+(.*)$ http://plus.google.com/[yourid]$1 | |
RedirectMatch ^/@(.*)$ http://twitter.com/[twitterusername]$1 |
and what is the root of my google+ profile? or how to i upload the htaccess to it? cheers!
I've used this redirect to allow for additional redirects:
RedirectMatch ^/\+(.*)$ http://plus.google.com/[yourid]$1 RedirectMatch ^/@(.*)$ http://twitter.com/[twitterusername]$1
This allows for links to G+ /about, /photos, etc to work and for Twitter's /followers and /[AnyList] to be added to your new link and still redirect properly.
@tesserwithpaul, it doesn't go on google+. It goes on yourwebsite.com
@traeblain, nice work! I've updated the code...
@tesserwithpaul You cannot upload an .htaccess file to Tumblr. But you can setup a redirect that will work like John's simple suggestion. What you need to do is go to your Tumblr dashboard and select 'Customize appearance' on the right. On the menu across the top you'll see Pages, click that then select 'Add a page'. In the popup, make the Page URL say:
pbwistanbul.tubmlr.com/+
On Page Type select 'Redirect', then in the Redirect to type:
http://plus.google.com/[yourid]
where [yourid] is your G+ id
Keep the 'Show a link to this page' unchecked then select 'Create page'. You'll most likely get an error, just close that window and hit 'Save + Close" on the main page. You should now have a like from http://pbwistanbul.tumlr.com/+ to your G+ account.
You can open up TextEdit (http://support.apple.com/kb/TA20406), enter the code above and then save it as ".htaccess". Once you've done that, you can upload it to the root of your site.