Groups
Groups
Sign in
Groups
Groups
Google App Engine
Conversations
Labels
About
Send feedback
Help
How to redirect a URL (static directory file) to an object in GCS?
70 views
Skip to first unread message
Paul Canning
unread,
Mar 25, 2015, 12:18:06 PM
3/25/15
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to google-a...@googlegroups.com
I have a static file in my app that ideally needs to sit in a bucket in GCS.
Unfortunately, there are old references to the direct URL, so I am unable to use the GCS public URL.
How can I redirect (think htaccess 301) the static file URL to the GCS object URL?
Example:
http://www.domain.com/folder/file.zip
>
http://storage.googleapis.com/bucket-name/file.zip
Mars Lan
unread,
Mar 27, 2015, 7:47:59 PM
3/27/15
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to google-a...@googlegroups.com
Assuming you're using PHP, you can create a script that handles /folder/.* and responses with the corresponding redirection headers to GCS objects.
Reply all
Reply to author
Forward
0 new messages